From f082cd6e368f9c8335f74d068db6980986ee7bb5 Mon Sep 17 00:00:00 2001 From: sanj Date: Thu, 29 Jul 2010 00:05:29 +0530 Subject: [PATCH] parse drive for server --- edgware/utils/parse_drive.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/edgware/utils/parse_drive.py b/edgware/utils/parse_drive.py index 053ca24..ddde216 100644 --- a/edgware/utils/parse_drive.py +++ b/edgware/utils/parse_drive.py @@ -1,6 +1,6 @@ import os import shutil -from add_file import addFile +# from add_file import addFile def isVideo(path): basename, ext = os.path.splitext(path) @@ -30,7 +30,7 @@ def spider(path, fn, **kwargs): def mvFile(dirpath, filename): path = os.path.join(dirpath, filename) if isVideo(path) or isAudio(path): - new_path = os.path.join("/srv2/EdgwareNTFS/RawMedia/Edgware Road SMS/", filename) + new_path = os.path.join("/srv/edgware/RawMedia/", filename) shutil.move(path, new_path) return True