From 34ab8be0979c4d20b55aed020cb160d7ec150dad Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Tue, 27 Jun 2017 15:53:52 -0600 Subject: [PATCH] Fix_ownership got a list of files, now it iterates through this list and sends each item to the function --- moveSeasoned.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/moveSeasoned.py b/moveSeasoned.py index f9556ab..da2eeaf 100755 --- a/moveSeasoned.py +++ b/moveSeasoned.py @@ -3,7 +3,7 @@ # @Author: KevinMidboe # @Date: 2017-04-12 23:27:51 # @Last Modified by: KevinMidboe -# @Last Modified time: 2017-06-27 15:51:21 +# @Last Modified time: 2017-06-27 15:53:17 import sys, sqlite3, json, os import logging @@ -77,7 +77,8 @@ def moveStray(strayId): fix_ownership(ep.typeDir('episode')) for root, dirs, files in os.walk(ep.typeDir('episode')): print(files) - fix_ownership(files) + for item in files: + fix_ownership(item) # TODO because we might jump over same files, the dir might no longer