CC-4662: Media Monitor: Unable to add watched folder because it's read only, by airtime-import command
- fixed
This commit is contained in:
parent
0870b1f018
commit
f246a09b1a
|
@ -161,7 +161,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)
|
#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…
Reference in New Issue