cc-4630: Added permission set on permission folder before watching it

This commit is contained in:
Rudi Grinberg 2012-11-01 16:49:23 -04:00
parent 575400b4c2
commit 6bcadd7ed6
1 changed files with 1 additions and 0 deletions

View File

@ -159,6 +159,7 @@ def WatchAddAction(option, opt, value, parser):
path = currentDir+path
path = apc.encode_to(path, 'utf-8')
if(os.path.isdir(path)):
os.chmod(path, 0765)
res = api_client.add_watched_dir(path)
if(res is None):
exit("Unable to connect to the server.")