-fixed "mported" bug in media-monitor-bootstrap
This commit is contained in:
parent
e6e046496c
commit
83f253dffe
|
@ -74,7 +74,7 @@ class AirtimeMediaMonitorBootstrap():
|
|||
all_files_set = set()
|
||||
for file_path in new_files:
|
||||
if len(file_path.strip(" \n")) > 0:
|
||||
all_files_set.add(file_path[len(dir)+1:])
|
||||
all_files_set.add(file_path[len(dir):])
|
||||
|
||||
if os.path.exists(self.pe.timestamp_file):
|
||||
"""find files that have been modified since the last time media-monitor process started."""
|
||||
|
@ -124,4 +124,4 @@ class AirtimeMediaMonitorBootstrap():
|
|||
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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue