I have many files in a directory A.
Some of those files exist in a directory tree with sub-directories B/B1, B/B2, B/B3, B/B4, ...
Note that some files have spaces in their names.
For example:
in directory A:
there's a file named
A/red file.pngthere's another named
A/blue file.pngand, in directory tree
B:there's a file named
B/small/red file.pngIn this example, I would like a script to tell me that the file
blue file.pngdoes not exist in the directoryB.
How can I write a script that will list all the files in A that are not found under the directory tree B?