From be839ba2dd90dac54a787aefb224e27a0d57c42c Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Tue, 27 Jun 2017 15:58:40 -0600 Subject: [PATCH] Trying to fix bug with os.join, now has a two args, not list --- moveSeasoned.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/moveSeasoned.py b/moveSeasoned.py index af6eafe..bb002ee 100755 --- a/moveSeasoned.py +++ b/moveSeasoned.py @@ -3,9 +3,9 @@ # @Author: KevinMidboe # @Date: 2017-04-12 23:27:51 # @Last Modified by: KevinMidboe -# @Last Modified time: 2017-06-27 15:56:33 +# @Last Modified time: 2017-06-27 15:58:09 -import sys, sqlite3, json, os +import sys, sqlite3, json, os.path import logging import env_variables as env @@ -77,7 +77,7 @@ def moveStray(strayId): fix_ownership(ep.typeDir('episode')) for root, dirs, files in os.walk(ep.typeDir('episode')): for item in files: - fix_ownership(os.path.join([ep.typeDir('episode'), item])) + fix_ownership(os.path.join(ep.typeDir('episode'), item)) # TODO because we might jump over same files, the dir might no longer