Skip to content
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

[Webdav] Folder in listContents() return as file type #1040

Closed
derapermana opened this issue Jun 20, 2019 · 2 comments
Closed

[Webdav] Folder in listContents() return as file type #1040

derapermana opened this issue Jun 20, 2019 · 2 comments
Labels

Comments

@derapermana
Copy link

derapermana commented Jun 20, 2019

I'm trying to list all files and folders from my Nextcloud using listContents(). But the result seems weird, my folder/s type return as file.
This is an array result from listContents()

[
{
"size": "11408",
"mimetype": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"timestamp": 1561049307,
"type": "file",
"path": "remote.php/webdav/1/185-187-1-ED.docx",
"dirname": "remote.php/webdav/1",
"basename": "185-187-1-ED.docx",
"extension": "docx",
"filename": "185-187-1-ED"
},
{
"timestamp": 1561049661,
"type": "file",
"path": "remote.php/webdav/1/Folder Baru",
"dirname": "remote.php/webdav/1",
"basename": "Folder Baru",
"filename": "Folder Baru"
},
{
"size": "10",
"mimetype": "text/plain",
"timestamp": 1561050303,
"type": "file",
"path": "remote.php/webdav/1/Test.txt",
"dirname": "remote.php/webdav/1",
"basename": "Test.txt",
"extension": "txt",
"filename": "Test"
}
]

I can't differentiate my folder ("Folder Baru") from my files (185-187-1-ED.docx and Test.txt) (if not from extension and/or mimetype, which folder doesn't have it). Oh, and BTW sorry for my bad english.

@kesselb
Copy link

kesselb commented Jul 11, 2019

@stale
Copy link

stale bot commented Sep 9, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Sep 9, 2019
@stale stale bot closed this as completed Sep 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants