hjue / gpicsync

Automatically exported from code.google.com/p/gpicsync
Other
0 stars 0 forks source link

[linux] gpicsync-gui does not handle .nef files #70

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download Nikon RAW files under Linux in such a way that they end with .nef  
2. Try to run gpicsync, it will not touch any file.

What is the expected output? What do you see instead?

It should change the .nef files as well.  If I rename file.nef to file.NEF,
gpicsync-gui does the right job.

What version of the product are you using? On what operating system?

1.26 on Linux.

Please provide any additional information below.

Original issue reported on code.google.com by jaegera...@gmail.com on 4 May 2008 at 11:49

GoogleCodeExporter commented 9 years ago
Diff to fix the problem - and remove a duplicate line:
Index: gpicsync-GUI.py
===================================================================
--- gpicsync-GUI.py     (revision 869)
+++ gpicsync-GUI.py     (working copy)
@@ -752,12 +752,12 @@
                 or fnmatch.fnmatch ( fileName, '*.CR2' )\
                 or fnmatch.fnmatch ( fileName, '*.CRW' )\
                 or fnmatch.fnmatch ( fileName, '*.NEF' )\
+                or fnmatch.fnmatch ( fileName, '*.nef' )\
                 or fnmatch.fnmatch ( fileName, '*.PEF' )\
                 or fnmatch.fnmatch ( fileName, '*.RAW' )\
                 or fnmatch.fnmatch ( fileName, '*.ORF' )\
                 or fnmatch.fnmatch ( fileName, '*.DNG' )\
                 or fnmatch.fnmatch ( fileName, '*.dng' )\
-                or fnmatch.fnmatch ( fileName, '*.dng' )\
                 or fnmatch.fnmatch ( fileName, '*.raf' )\
                 or fnmatch.fnmatch ( fileName, '*.MRW' ):

Original comment by jaegera...@gmail.com on 4 May 2008 at 11:50

GoogleCodeExporter commented 9 years ago
Thanks jaegerandi, I've now committed case sensitivity change for all the file
formats supported.

--
I guess I didn't interpret this well:

"""
fnmatch(filename, pattern)
    Test whether the filename string matches the pattern string, returning true or
false. If the operating system is case-insensitive, then both parameters will be
normalized to all lower- or upper-case before the comparison is performed. 
"""
http://docs.python.org/lib/module-fnmatch.html

francois

Original comment by francois...@gmail.com on 4 May 2008 at 3:09