SO basically, lets say I have an example folder as following:
C:\
└───Dox
│ cat.txt
│ dog.txt
│ girl.txt
│ ...
│
└───NonDOx
boy.txt
girl.txt
...
I want it to look like this,
C:\
└───Dox
│ girl.txt
│
└───NonDOx
girl.txt
So, yeah basically, all the files from folder and sub-folder should be deleted, except girl.txt
, which lies in random folders.
Also , what is the difference between folder and a directory? Is it like a
directory is a folder that has one or more folders in it or its just same as folder?
I couldn't find something that would delete in sub folders and leave 1(particular file).