![]() ![]() If you need label intersection search, combine them into one label. Synology drive search function provide label union search rather than intersection search. Another solution is creating a tool user. If you want share labels between users, you should have access to these user accounts. Synology drive thinks labels need to belong to single user. download_file ( '/mydrive/test.osheet' ) # write your code here Manage labels with SynologyDrive ( NAS_USER, NAS_PASS, NAS_IP, dsm_version = '7' ) as synd : synd. from synology_drive_api.drive import SynologyDrive # default http port is 5000, https is 5001. If you use dsm 7, default dsm_version is '6'. list_folder ( '/mydrive' ) # write your code here upload_file ( file, dest_folder_path = dest_folder_path ) # write your code here # disable label cache with SynologyDrive ( NAS_USER, NAS_PASS, drive_path_demo, enable_label_cache = False ) as synd : synd. list_folder ( '/mydrive' ) # write your code here # use domain name or name + path access drive # Enabled in Application Portal | Application | Drive | General | Enable customized alias drive_path_demo = 'your_nas_domain/drive' # Enabled in Application Portal | Application | Drive | General | Enable customized domain drive_path_demo2 = 'your_drive_domain' with SynologyDrive ( NAS_USER, NAS_PASS, drive_path_demo ) as synd : synd. with SynologyDrive ( NAS_USER, NAS_PASS, otp_code = 'XXXXXX' ) as synd : synd. create_folder ( 'test', 'team-folder/folder2/' ) # write your code here # Enable 2fa. with SynologyDrive ( NAS_USER, NAS_PASS, NAS_IP, https = False ) as synd : synd. get_file_or_folder_info ( path_or_path_id ) # write your code here # use http instead of https. list_folder ( '/mydrive' ) # write your code here # Use specified port with SynologyDrive ( NAS_USER, NAS_PASS, NAS_IP, NAS_PORT ) as synd : synd. with SynologyDrive ( NAS_USER, NAS_PASS, NAS_IP ) as synd : synd. ![]() if you need multiple login session and label functions, disable label cache. ![]() Synology Drive allows same user with multiple login session. You can access drive by IP, drive domain or nas domain + drive path. Installation pip install synology-drive-api By means of Synology Office, you can edit spreadsheet on Drive and use this api wrapper read spreadsheet. It helps you manage your files/folders/labels in synology drive. This repo is aimed at providing Synology drive api wrapper and related helper functions. I am not sure if this is a NAS or Apple problem and it is possible it will go with either DSM7 or what I think is the imminent ios14.5, but then I hoped this when ios14 was issued.Synology-drive-api is inspired by synology-api. It is as though the directory listing needs refreshing, but there is no obvious way to do this. 1/2 hour, while I do other things on the iPad/iPhone and then going back to the Files App can bring the listing back. Leaving the iPad/iPhone for a while, e.g. Short term sleep on iPad/iPhone does not resolve this, neither does closing the Files App and opening it up again, although powering off/on does, but then this means re-entering my AppleID, etc. Occasionally I find that I can access fully all but one or two folders, although not necessarily the same ones (it is possible that they were the folders I most recently accessed.) The Files App simply shows the folder as having 0 items, which initially made me think that I had deleted the contents. The Files app is useful but I have noticed that at times it refuses to show the directory listing of one or more shared folders on the NAS. I have 9 shared folders on the NAS and on both iPad and iPhone I have the excellent FileBrowser and Documents apps, both of which can access all the folders and files on the NAS always. Both iPad and iPhone are on i(Pad)os14.4 and the NAS is on DSM 6.2.3-25426 Update 3. I have my iPhone and iPad accessing my NAS via the iOS Files app, using a SMB connection. Has anyone spotted this occasional problem, or perhaps have a solution? ![]()
0 Comments
Leave a Reply. |