Merge remote-tracking branch 'rudi/cc-4630' into 2.2.x

This commit is contained in:
Rudi Grinberg 2012-11-02 11:29:22 -04:00
commit 466b647b59
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.")