richq / folders2flickr

Upload files to flickr
Other
102 stars 38 forks source link

Make .f2fignore cumulative over tree #50

Closed julienV closed 8 years ago

julienV commented 8 years ago

First, i'd like to say thank you for this tool, works really nice ! The only problem i had was that uploading video takes forever, so i wanted to exclude them temporarily to upload pictures first. using .f2fignore works, but i had to put one in each folder to upload, and them remove them when pictures are uploaded and i can resume sending videos. With many folders, it's rather a pain in the ass to do manually ;) So, what i did was modify the script so that .f2folder get cumulative over the tree, meaning that for the folder path/to/my/many/picture/folder the ignoreglobs used for matching files in current folder will contain the content of the .f2fignore files from path, path/to, path/to/my, etc...

it shouldn't break anything ;)

richq commented 8 years ago

Thanks! This bit me too but I didn't have enough videos for it to get so annoying that I would do anything. Also I get the feeling that this won't stop until we've implemented all of the .gitignore syntax, but this is a good solution for now that covers most use cases I think :-D

julienV commented 8 years ago

yes, full .gitignore style syntax would be better, but that should do, It's only photos and videos after all. except if people mix it with other files, but doesn't seem a very common use case