CC-2272: Ability to change storage directory location

-fix SQL syntax error
This commit is contained in:
martin 2011-07-08 10:12:33 -04:00
parent 9d994aa225
commit 012aa51f3a
2 changed files with 3 additions and 3 deletions

View file

@ -832,7 +832,7 @@ class StoredFile {
// ." AND m.id = $dir_id"; // ." AND m.id = $dir_id";
$sql = "SELECT filepath as fp" $sql = "SELECT filepath as fp"
." FROM CC_FILES" ." FROM CC_FILES"
." WHERE f.directory = $dir_id"; ." WHERE directory = $dir_id";
$rows = $CC_DBC->getAll($sql); $rows = $CC_DBC->getAll($sql);

View file

@ -97,13 +97,13 @@ class AirtimeMediaMonitorBootstrap():
self.pe.handle_removed_file(False, "%s/%s" % (dir, file_path)) self.pe.handle_removed_file(False, "%s/%s" % (dir, file_path))
for file_path in new_files_set: for file_path in new_files_set:
if os.path.exists(file_path):
file_path = "%s/%s" % (dir, file_path) file_path = "%s/%s" % (dir, file_path)
if os.path.exists(file_path):
self.pe.handle_created_file(False, os.path.basename(file_path), file_path) self.pe.handle_created_file(False, os.path.basename(file_path), file_path)
for file_path in modified_files_set: for file_path in modified_files_set:
if os.path.exists(file_path):
file_path = "%s/%s" % (dir, file_path) file_path = "%s/%s" % (dir, file_path)
if os.path.exists(file_path):
self.pe.handle_modified_file(False, os.path.basename(file_path), file_path) self.pe.handle_modified_file(False, os.path.basename(file_path), file_path)
def execCommand(self, command): def execCommand(self, command):