Commit 538abfa0 authored by Richard Torenvliet's avatar Richard Torenvliet Committed by GitHub

Update Readme

parent ce1120e6
......@@ -8,7 +8,25 @@ This can take a couple of days to be uploaded, so the idea is to create smaller
batches so that you can also turn your computer off and continue later.
So, I wanted to move / copy these separate 32000 files into separate folders of
size `N`.
size `N`, and then select all the files in the folder and drag-and-drop or select-and-upload
with out the risk of introducing a lot duplicate uploads because I don't exactly know
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).
└── output
├── part_0
├── part_1000
├── part_1500
└── part_500
~~~
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?
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..
## Usage
......@@ -27,23 +45,15 @@ Make part directories of size 500 (default is 10 per folder)
./mftsf.sh -i inputDir -o outputDir -n 500
~~~
An example of how this looks like:
~~~shell
├── folder (here all your files are located for example).
└── output
├── part_0
├── part_1000
├── part_1500
└── part_500
~~~
> Skip the first 100 and then make folders of size 100
~~~shell
./mftsf.sh -i inputDir -o outputDir -s 100 -n 100
~~~
## Lousy quote
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. With the
skip command you can easily start off.
`cp` command instead of the `mv` because I don't want to remove files.
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