diff options
-rwxr-xr-x | fbin.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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: |