How to enable fall-through directories in Linux, so if /path0/file doesn't exist, path1/file is used

Posted by Hunter Loftis on Stack Overflow See other posts from Stack Overflow or by Hunter Loftis
Published on 2010-03-24T18:23:17Z Indexed on 2010/03/24 18:33 UTC
Read the original article Hit count: 175

Filed under:
|
|
|

I'm seeking way to have linux fall-through on directories so that with this structure:

/dir0/a.txt: "A"

/dir0/b.txt: "B"

/dir1/c.txt: "C"

/dir1/b.txt: "BBB"

dir1 falls back to dir0, leading to:

cat dir1/a.txt: "A"

cat dir1/b.txt: "BBB"

cat dir1/c.txt: "C"

© Stack Overflow or respective owner

Related posts about linux

Related posts about file