summaryrefslogtreecommitdiffstats
path: root/module/utils/fs.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-01-01 13:36:59 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-01-01 13:36:59 +0100
commit35742c2cb023ac49ab3056752d2040cdb030cc2b (patch)
treed0f22f591b2b81ab24a982a44820a3d86ba5eea3 /module/utils/fs.py
parentmissing import (diff)
downloadpyload-35742c2cb023ac49ab3056752d2040cdb030cc2b.tar.xz
Happy new Year !
Diffstat (limited to 'module/utils/fs.py')
-rw-r--r--module/utils/fs.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/module/utils/fs.py b/module/utils/fs.py
index 23f87a326..037165b6b 100644
--- a/module/utils/fs.py
+++ b/module/utils/fs.py
@@ -20,7 +20,10 @@ else:
# FS utilities
def chmod(path, mode):
- return os.chmod(fs_encode(path), mode)
+ try:
+ return os.chmod(fs_encode(path), mode)
+ except :
+ pass
def chown(path, uid, gid):
return os.chown(fs_encode(path), uid, gid)