You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: restsdk_public.py
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -44,11 +44,14 @@ def idToPath2(fileID):
44
44
returnpath
45
45
46
46
deffilenameToID(filename):
47
-
#turn a filename from filesystem into a db id
47
+
#turn a filename from filesystem into a db id | Some (newer?) versions of MyCloud Home have changed their DB entries so that contentID no longer is the filename
48
48
forkeys,valuesinfileDIC.items():
49
49
ifvalues['contentID']==filename:
50
50
#print('Found filename ' + filename + ' in DBkey ' + str(keys) +' with name ' + values['Name'])
51
51
returnstr(keys)
52
+
elifvalues['Name']==filename:
53
+
#print('Found filename ' + filename + ' in DBkey ' + str(keys) +' with name ' + values['Name'])
0 commit comments