forked from upstream/IPod-Shuffle-4g
Ignore hidden filenames
This commit is contained in:
parent
e189477870
commit
d8eb3871bf
1 changed files with 7 additions and 5 deletions
|
|
@ -608,6 +608,8 @@ class Shuffler(object):
|
||||||
# Ignore the speakable directory and any hidden directories
|
# Ignore the speakable directory and any hidden directories
|
||||||
if not is_path_prefix("iPod_Control/Speakable", relpath) and "/." not in dirpath:
|
if not is_path_prefix("iPod_Control/Speakable", relpath) and "/." not in dirpath:
|
||||||
for filename in sorted(filenames, key = lambda x: x.lower()):
|
for filename in sorted(filenames, key = lambda x: x.lower()):
|
||||||
|
# Ignore hidden files
|
||||||
|
if not filename.startswith("."):
|
||||||
fullPath = os.path.abspath(os.path.join(dirpath, filename))
|
fullPath = os.path.abspath(os.path.join(dirpath, filename))
|
||||||
if os.path.splitext(filename)[1].lower() in (".mp3", ".m4a", ".m4b", ".m4p", ".aa", ".wav"):
|
if os.path.splitext(filename)[1].lower() in (".mp3", ".m4a", ".m4b", ".m4p", ".aa", ".wav"):
|
||||||
self.tracks.append(fullPath)
|
self.tracks.append(fullPath)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue