phockup icon indicating copy to clipboard operation
phockup copied to clipboard

Copy2 chmod error - Prefix and Suffix options

Open philchand opened this issue 4 years ago • 3 comments

HI

Theres a bug in copy2, that if a system doesn't support chmod it throws an OSError exeception. There been an issue open since 2016 for this, go see shutils. Anyhow when using phockup of a NFS mounted drive chmod is not available , so added catch for OSError.

Also added two options for adding text to the files name either as a prefix or a suffix or both. in the case of suffix the text in added before the extension. I need to keep the original file name but add some text so I could identify the copies.

Sorry, I should have done this on a branch but was did it as I was sorting out my photos.

Phil

philchand avatar Feb 14 '21 23:02 philchand

Can someone with Windows test this one and let me know if the PR fixes the issue as I don't have Windows computer right now?

ivandokov avatar Oct 02 '21 21:10 ivandokov

It seems that I missed you comment, variables renamed.

philchand avatar Apr 11 '22 15:04 philchand

Can you please resolve the conflicts. Also I still need someone to test it on Windows.

ivandokov avatar Apr 15 '22 10:04 ivandokov