mirror of
https://github.com/nims11/IPod-Shuffle-4g.git
synced 2025-12-08 00:18:01 +09:00
Remove stale voiceover files to save space
This commit is contained in:
parent
9f47cf5587
commit
9e4782e3c1
1 changed files with 3 additions and 0 deletions
|
|
@ -408,6 +408,9 @@ class Shuffler(object):
|
||||||
self.rename = rename
|
self.rename = rename
|
||||||
|
|
||||||
def initialize(self):
|
def initialize(self):
|
||||||
|
# remove existing voiceover files (they are either useless or will be overwritten anyway)
|
||||||
|
for dirname in ('iPod_Control/Speakable/Playlists', 'iPod_Control/Speakable/Tracks'):
|
||||||
|
shutil.rmtree(os.path.join(self.path, dirname), ignore_errors=True)
|
||||||
for dirname in ('iPod_Control/iTunes', 'iPod_Control/Music', 'iPod_Control/Speakable/Playlists', 'iPod_Control/Speakable/Tracks'):
|
for dirname in ('iPod_Control/iTunes', 'iPod_Control/Music', 'iPod_Control/Speakable/Playlists', 'iPod_Control/Speakable/Tracks'):
|
||||||
make_dir_if_absent(os.path.join(self.path, dirname))
|
make_dir_if_absent(os.path.join(self.path, dirname))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue