-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nc.files.find() with "name" param bug fix (#89)
Fixes #87. @CooperGerman if you wish, we could add your name to the Authors.md, just need to know it ) P.S: mention me anywhere or create a PR with updated Authors if you want ;) Signed-off-by: Alexander Piskun <[email protected]>
- Loading branch information
Showing
5 changed files
with
39 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import nc_py_api | ||
|
||
if __name__ == "__main__": | ||
# create Nextcloud client instance class | ||
nc = nc_py_api.Nextcloud(nextcloud_url="http://nextcloud.local", nc_auth_user="admin", nc_auth_pass="admin") | ||
|
||
print("Searching for all files which names ends with `.txt`:") | ||
result = nc.files.find(["like", "name", "%.txt"]) | ||
for i in result: | ||
print(i) | ||
print("") | ||
print("Searching for all files which name is equal to `Nextcloud_Server_Administration_Manual.pdf`:") | ||
result = nc.files.find(["eq", "name", "Nextcloud_Server_Administration_Manual.pdf"]) | ||
for i in result: | ||
print(i) | ||
exit(0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters