CC-1799 Put Airtime Storage into a Human Readable File Naming Convention
This commit is contained in:
parent
2e03698f02
commit
fb117fb617
|
@ -217,11 +217,8 @@ class MediaMonitor(ProcessEvent):
|
|||
def create_unique_filename(self, filepath):
|
||||
|
||||
file_dir = os.path.dirname(filepath)
|
||||
print file_dir
|
||||
filename = os.path.basename(filepath).split(".")[0]
|
||||
print filename
|
||||
file_ext = os.path.splitext(filepath)[1]
|
||||
print file_ext
|
||||
|
||||
if(os.path.exists(filepath)):
|
||||
i = 1;
|
||||
|
@ -231,7 +228,9 @@ class MediaMonitor(ProcessEvent):
|
|||
if(os.path.exists(new_filepath)):
|
||||
i = i+1;
|
||||
else:
|
||||
return new_filepath
|
||||
filepath = new_filepath
|
||||
|
||||
self.imported_renamed_files[filepath] = 0
|
||||
|
||||
return filepath
|
||||
|
||||
|
|
Loading…
Reference in New Issue