Skip to content

added files.get_tags function #260

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 30, 2024
Merged

added files.get_tags function #260

merged 2 commits into from
May 30, 2024

Conversation

bigcat88
Copy link
Member

Fixes #259

    nc = nc_py_api.Nextcloud(nc_auth_user="admin", nc_auth_pass="admin", nextcloud_url="http://stable29.local")
    some_file = nc.files.by_path("New folderz/1.txt")
    some_file_tags = nc.files.get_tags(some_file)
    print(some_file_tags)

Output:

[<SystemTag id=1, name=first>, <SystemTag id=2, name=second>]

Signed-off-by: Alexander Piskun <[email protected]>
Copy link

codecov bot commented May 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.75%. Comparing base (5d41bf9) to head (9f70fc2).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #260      +/-   ##
==========================================
+ Coverage   95.72%   95.75%   +0.03%     
==========================================
  Files          45       46       +1     
  Lines        5261     5301      +40     
==========================================
+ Hits         5036     5076      +40     
  Misses        225      225              
Files Coverage Δ
nc_py_api/__init__.py 100.00% <100.00%> (ø)
nc_py_api/files/_files.py 98.59% <100.00%> (+0.06%) ⬆️
nc_py_api/files/files.py 100.00% <100.00%> (ø)
nc_py_api/files/files_async.py 100.00% <100.00%> (ø)
nc_py_api/nextcloud.py 98.00% <100.00%> (+<0.01%) ⬆️

@bigcat88 bigcat88 marked this pull request as ready for review May 30, 2024 08:22
@bigcat88 bigcat88 merged commit fd92a25 into main May 30, 2024
@bigcat88 bigcat88 deleted the feat-get_tags branch May 30, 2024 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

get tags assigned to a file or a folder
1 participant