--- collections_ORN.py 2016-01-06 12:18:40.763828497 +0800 +++ collections.py 2016-01-06 12:17:48.299821379 +0800 @@ -1170,6 +1170,11 @@ """ Returns time line of specified file changed """ + #quick fix to spaces in filepath + modified_filepath = "" + if (" " in filepath) == True: + modified_filepath = '"' + filepath.replace(" ", r"\x20") + '"' + if not self.matched_chain_pair: return "" @@ -1179,9 +1184,9 @@ for bs in all_backup_set: filelist = [fileinfo[1] for fileinfo in bs.get_files_changed()] - if filepath in filelist: + if modified_filepath in filelist: specified_file_backup_set.append(bs) - index = filelist.index(filepath) + index = filelist.index(modified_filepath) specified_file_backup_type.append(bs.get_files_changed()[index][0]) return FileChangedStatus(filepath, list(zip(specified_file_backup_type, specified_file_backup_set)))