We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cbca58 commit 148c06eCopy full SHA for 148c06e
script/onedrive.py
@@ -1,5 +1,6 @@
1
from os.path import exists
2
3
+import magic
4
import onedrivesdk
5
from onedrivesdk.helpers import GetAuthCodeServer
6
@@ -24,6 +25,7 @@ def __guess_info(self, file_path):
24
25
self.info = {
26
'path': file_path,
27
'name': file_path.split('/')[-1],
28
+ 'mime_type': magic.from_file(file_path, mime=True),
29
}
30
log_info('[+] new file upload on OneDrive:')
31
log_info(self.info['name'])
0 commit comments