You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,17 @@ Or you can sort by year without century, then week number, then an abbreviated d
34
34
35
35
The possibilities go on and on.
36
36
37
+
## original source directory structure
38
+
The default behavior is to omit the original directory structure in the source directory and to move or copy the files to the formatted date directories under the destination directory. By using the -p/--preserve-dir option, the original source directory structure will be preserved and created under the destination directory as well as the formatted date directories.
39
+
40
+
For Example, with a directory structure of src/dir1/dir2/file, the default behavior will lead to:
41
+
42
+
dst/2014/08-Aug/file
43
+
44
+
With -p/--preserve-dir the behavior is:
45
+
46
+
dst/dir1/dir2/2014/08-Aug/file
47
+
37
48
## duplicate removal
38
49
SortPhotos will *always* check to make sure something with the same file name doesn't already exist where it's trying to write, so that you don't unintentionally overwrite a file. It this occurs it will append a number on the end of the file. So for example if photo.jpg was taken on June 1, 2010 but 2010 > June > photo.jpg already exists then the new file will be copied as photo_1.jpg and so on. SortPhotos will go one step further and if it finds a file of the same name, it will then run a file compare to see if the files are actually the same. If they are *exactly* the same, it will just skip the copy (or move) operation. This will prevent you from having duplicate files. However you have the option of turning this off (not the name comparison, that will always happen, just the weeding out of duplicates). This option would be useful, for example, if you are copying over a bunch of new photos that you are sure don't already exist in your organized collection of photos. It's a little faster to skip duplicate detection. Invoke the option ``--keep-duplicates`` in order to skip duplicate detection.
parser.add_argument('-m', '--move', action='store_true', help='move files instead of copy')
248
+
parser.add_argument('-p', '--preserve-dirs', action='store_true', help='preserve original src_dir folder structure while moving or copying to dest_dir')
0 commit comments