Merge remote-tracking branch 'rudi/cc-4630' into 2.2.x
This commit is contained in:
commit
466b647b59
1 changed files with 1 additions and 0 deletions
|
@ -159,6 +159,7 @@ def WatchAddAction(option, opt, value, parser):
|
||||||
path = currentDir+path
|
path = currentDir+path
|
||||||
path = apc.encode_to(path, 'utf-8')
|
path = apc.encode_to(path, 'utf-8')
|
||||||
if(os.path.isdir(path)):
|
if(os.path.isdir(path)):
|
||||||
|
os.chmod(path, 0765)
|
||||||
res = api_client.add_watched_dir(path)
|
res = api_client.add_watched_dir(path)
|
||||||
if(res is None):
|
if(res is None):
|
||||||
exit("Unable to connect to the server.")
|
exit("Unable to connect to the server.")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue