Commit 740dc46e authored by Richard Torenvliet's avatar Richard Torenvliet Committed by GitHub

Update readme

parent 538abfa0
......@@ -14,7 +14,7 @@ where I left off... sound familiar probably?
So you want to subdivide all these separate files into separate folders like so (forget about how `tree` sorted it :))
~~~shell
├── folder (here all your files are located for example).
├── folder # (here all your files are located for example).
└── output
├── part_0
├── part_1000
......@@ -23,10 +23,10 @@ So you want to subdivide all these separate files into separate folders like so
~~~
It makes copies using the `cp` command to a new folder in the `outputDir`,
so `cp inputDir/some-awesome-photo.jpg outputDir/part_0/some-awesome-photo.jpg` and it does this for all the files at level1 depth of in the `inputDir` folder. Now that you copied a bunch of files, let's see 1500 files you, you just stop the command using CTRL+C and use the `skip` at a later point in time and set it to 1500 again. It will then start at part_1500 and start copying again. Of course you have a potential problem if you have some files in the 1500 directory and you've uploaded them leaving you with some (potential!!) duplicates. I say potential, because maybe your online cloud system filters those?
so `cp inputDir/some-awesome-photo.jpg outputDir/part_0/some-awesome-photo.jpg` and it does this for all the files at level1 depth of in the `inputDir` folder. Now that you copied a bunch of files, let's see 1500 files you, you just stop the command using CTRL+C and use the `skip` at a later point in time and set it to 1500 again. It will then start at `part_1500` and start copying again. Of course you have a potential problem if you have some files in the 1500 directory and you've uploaded them leaving you with some (potential!!) duplicates. I say potential, because maybe your online cloud system filters those?
Notice that I purposely not use the `mv` command because I don't want anyone (including me) to use this
teeny tiny tool to delete there files.. don't want that responsibility..
teeny tiny tool to delete their files.. don't want that responsibility..
## Usage
......@@ -45,7 +45,7 @@ Make part directories of size 500 (default is 10 per folder)
./mftsf.sh -i inputDir -o outputDir -n 500
~~~
> Skip the first 100 and then make folders of size 100
> Skip the first 100 and then make folders of size 100, which starts at making the `part_100` folder and putting the files there.
~~~shell
./mftsf.sh -i inputDir -o outputDir -s 100 -n 100
~~~
......@@ -54,6 +54,5 @@ Make part directories of size 500 (default is 10 per folder)
I wish you a 'Happy Move Files to Separate Folders' time!!
## Disclaimer
I used this myself to make it work for my purpose, I'm not guaranteeing
anything for anyone else with respect to the result. I deliberately use the
`cp` command instead of the `mv` because I don't want to remove files.
I used this myself to make it work for my purpose, and hopefully can help someone else. I'm not guaranteeing
anything for anyone else with respect to the results. When you f&(*cked up and deleted all your important files for example.. don't do that. Again, I deliberately use the `cp` command instead of the `mv` because I don't want to remove files. Despite of what the tools is called ;)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment