summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xfbin.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/fbin.py b/fbin.py
index bd025c0..7667414 100755
--- a/fbin.py
+++ b/fbin.py
@@ -94,6 +94,8 @@ class Application(object):
hash = ''.join(random.choice(base62_alphabet) for x in xrange(5))
new_path = os.path.join(settings.file_directory, hash + os.path.splitext(filename)[1])
os.rename(path, new_path)
+ if hasattr(settings, 'destination_mode'):
+ os.chmod(new_path, settings.destination_mode)
session = db.Session()
try: