CC-2272: Ability to change storage directory location
-fix SQL syntax error
This commit is contained in:
parent
9d994aa225
commit
012aa51f3a
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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:
|
||||||
|
file_path = "%s/%s" % (dir, file_path)
|
||||||
if os.path.exists(file_path):
|
if os.path.exists(file_path):
|
||||||
file_path = "%s/%s" % (dir, 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:
|
||||||
|
file_path = "%s/%s" % (dir, file_path)
|
||||||
if os.path.exists(file_path):
|
if os.path.exists(file_path):
|
||||||
file_path = "%s/%s" % (dir, 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):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue