richq / folders2flickr

Upload files to flickr
Other
102 stars 38 forks source link

.f2fignore #17

Closed michieldewit closed 10 years ago

michieldewit commented 10 years ago

I think it would be really nice to have some kind of .f2fignore file in which some specific folders or files can be excluded (e.g. very large movie files or folders that contain a collection of the best photos of the other folders)

jamesholland-uk commented 10 years ago

Yes please, +1

richq commented 10 years ago

I've made a commit on the f2fignore branch that implements this https://github.com/richq/folders2flickr/tree/f2fignore - take a look if this is what you had in mind. It's like a poor-man's ".gitignore", working only on the directory where the file is (though it culls sub-dirs in that directory IYSWIM). It does allow glob patterns which I think would be useful to e.g. ignore movies in the current dir.

If I don't hear any complaints I'll merge that into the master branch after a few days to mull it over.

michieldewit commented 10 years ago

Change looks great! Not sure whether the 'empty .f2fignore file makes f2f ignore whole directory' is analogous with the way .gitignore works. I think I would expect an empty file to do nothing. Will test when I get back home.

On Mon, Mar 17, 2014 at 9:27 PM, Richard Quirk notifications@github.comwrote:

I've made a commit on the f2fignore branch that implements this https://github.com/richq/folders2flickr/tree/f2fignore - take a look if this is what you had in mind. It's like a poor-man's ".gitignore", working only on the directory where the file is (though it culls sub-dirs in that directory IYSWIM). It does allow glob patterns which I think would be useful to e.g. ignore movies in the current dir.

If I don't hear any complaints I'll merge that into the master branch after a few days to mull it over.

Reply to this email directly or view it on GitHubhttps://github.com/richq/folders2flickr/issues/17#issuecomment-37865800 .

richq commented 10 years ago

Well, I thought it might be easier to just add an empty .f2fignore to ignore a whole directory than to have to add * to it. Since this isn't set in stone yet I appreciate the feedback. As it's a bit strange, having to add an asterisk would be easier to understand and explain.

richq commented 10 years ago

I've merged the f2fignore branch into master now!

lbell commented 10 years ago

Any way to further this to ignore all *.MOV files (for example) in all subdirectories? IE, a global ignore?