mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-22 15:32:19 +03:00
Merge branch 'master' of https://github.com/Pardus-Kurumsal/ahenk
This commit is contained in:
commit
8859c981eb
2 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||||
|
|
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue