Try to circumvent problems with creating the Icon directory.
Seems to be either concurrency, or a permission problem.
This commit is contained in:
parent
edea4229aa
commit
a0ff1f611a
1 changed files with 8 additions and 4 deletions
|
|
@ -32,10 +32,14 @@ rsvgPath = "./rsvg-convert"
|
|||
artworkLayerPrefix = "artwork:"
|
||||
|
||||
def createDirectory( name ):
|
||||
if os.path.isfile(name):
|
||||
os.remove(name)
|
||||
if not os.path.exists(name):
|
||||
os.mkdir(name)
|
||||
try:
|
||||
if os.path.isfile(name):
|
||||
os.remove(name)
|
||||
if not os.path.exists(name):
|
||||
os.mkdir(name)
|
||||
except:
|
||||
print 'WARNING: createDirectory("%s") failed. Permission problems?' % name
|
||||
|
||||
|
||||
def copyMergeDirectory( src, dst ):
|
||||
listing = os.listdir(src)
|
||||
|
|
|
|||
Loading…
Reference in a new issue