This commit is contained in:
Volkan Şahin 2016-08-01 20:33:34 +03:00
commit 8859c981eb
2 changed files with 2 additions and 2 deletions

View file

@ -126,8 +126,8 @@ class System:
def received_dir_path(): def received_dir_path():
path = '/tmp/.ahenk/' path = '/tmp/.ahenk/'
if Util.is_exist(path) is False: if Util.is_exist(path) is False:
# TODO write permission add
Util.create_directory(path) Util.create_directory(path)
Util.set_permission(path, '777')
return path return path
class Process(object): class Process(object):

View file

@ -263,7 +263,7 @@ class Util:
@staticmethod @staticmethod
def set_permission(path, permission_code): def set_permission(path, permission_code):
Util.execute('chmod {} {}'.format(permission_code, path)) Util.execute('chmod -R {0} {1}'.format(permission_code, path))
@staticmethod @staticmethod
def has_attr_json(arg, attr_name): def has_attr_json(arg, attr_name):