Now the full path is sent to fix ownership, not just the file path
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
# @Author: KevinMidboe
|
# @Author: KevinMidboe
|
||||||
# @Date: 2017-04-12 23:27:51
|
# @Date: 2017-04-12 23:27:51
|
||||||
# @Last Modified by: KevinMidboe
|
# @Last Modified by: KevinMidboe
|
||||||
# @Last Modified time: 2017-06-27 15:53:17
|
# @Last Modified time: 2017-06-27 15:55:41
|
||||||
|
|
||||||
import sys, sqlite3, json, os
|
import sys, sqlite3, json, os
|
||||||
import logging
|
import logging
|
||||||
@@ -76,9 +76,8 @@ def moveStray(strayId):
|
|||||||
|
|
||||||
fix_ownership(ep.typeDir('episode'))
|
fix_ownership(ep.typeDir('episode'))
|
||||||
for root, dirs, files in os.walk(ep.typeDir('episode')):
|
for root, dirs, files in os.walk(ep.typeDir('episode')):
|
||||||
print(files)
|
|
||||||
for item in files:
|
for item in files:
|
||||||
fix_ownership(item)
|
fix_ownership(os.path.join([ep.typeDir('episode'), item])
|
||||||
|
|
||||||
|
|
||||||
# TODO because we might jump over same files, the dir might no longer
|
# TODO because we might jump over same files, the dir might no longer
|
||||||
|
|||||||
Reference in New Issue
Block a user