added maxdepth so it does'nt screw up the existing folders

ashagg1976 2020-06-03 04:31:32 +05:30
parent c1ad97e1b8
commit bb707d03d8
1 changed files with 1 additions and 1 deletions

@ -33,7 +33,7 @@ I used a program called [Files 2 Folder](http://www.dcmembers.com/skwire/downloa
```sh
cd /path/to/your/movies/files/
find . -name "*.mkv" -exec sh -c 'mkdir "${1%.*}" ; mv "${1%}" "${1%.*}" ' _ {} \;
find . -maxdepth 1 -name "*.mkv" -exec sh -c 'mkdir "${1%.*}" ; mv "${1%}" "${1%.*}" ' _ {} \;
```
# Windows & Linux