Commit 61f48c5d authored by mail-related applications's avatar mail-related applications
Browse files

a quick piece of code to remove ^ m from file names

parent 068bcbfe
......@@ -145,6 +145,7 @@ class Sifter:
for item in allFiles:
if item['id'] not in self.transfer_files.keys():
if item['id'] not in self.private_files.keys():
item['title'] = item['title'].replace(r'^M','')
self.unknown_files[item['id']] = {
'owner': item['owners.0.emailAddress'].strip(),
'name': item['title'].strip(),
......
......@@ -17,7 +17,7 @@ file_errors = []
class Mover:
error_text = ""
def __init__(self, args, config):
self.__dict__.update(args)
self.config = config
......@@ -96,7 +96,7 @@ class Mover:
)
transfer_error = True
error_text = e.output
print(e.output)
pass
#continue on error
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment