Browse Source

skip over AppleDouble Resource fork files...

[git-p4: depot-paths = "//depot/": change = 1263]
main
John-Mark Gurney 16 years ago
parent
commit
ecaceb797f
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      FSStorage.py

+ 5
- 1
FSStorage.py View File

@@ -216,7 +216,11 @@ class FSItem(FSObject, Item):
Item.doUpdate(self)

def ignoreFiles(path, fobj):
if os.path.basename(path) in _filestoignore:
bn = os.path.basename(path)
if bn in _filestoignore:
return IgnoreFile, None
elif bn[:2] == '._' and open(path).read(4) == '\x00\x05\x16\x07':
# AppleDouble encoded Macintosh Resource Fork
return IgnoreFile, None

return None, None


||||||
x
 
000:0
Loading…
Cancel
Save