diff --git a/opt/ahenk/base/system/system.py b/opt/ahenk/base/system/system.py index 405d671..871df41 100644 --- a/opt/ahenk/base/system/system.py +++ b/opt/ahenk/base/system/system.py @@ -126,8 +126,8 @@ class System: def received_dir_path(): path = '/tmp/.ahenk/' if Util.is_exist(path) is False: - # TODO write permission add Util.create_directory(path) + Util.set_permission(path, '777') return path class Process(object): diff --git a/opt/ahenk/base/util/util.py b/opt/ahenk/base/util/util.py index ade925c..eb2f9a2 100644 --- a/opt/ahenk/base/util/util.py +++ b/opt/ahenk/base/util/util.py @@ -263,7 +263,7 @@ class Util: @staticmethod def set_permission(path, permission_code): - Util.execute('chmod {} {}'.format(permission_code, path)) + Util.execute('chmod -R {0} {1}'.format(permission_code, path)) @staticmethod def has_attr_json(arg, attr_name):