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

Question about a shared file and STATUS_DELETE_PENDING #524

Closed
mikepoz59 opened this issue Jan 15, 2020 · 3 comments
Closed

Question about a shared file and STATUS_DELETE_PENDING #524

mikepoz59 opened this issue Jan 15, 2020 · 3 comments

Comments

@mikepoz59
Copy link

Using this in a project and occasionally we get an exception with STATUS_DELETE_PENDING as the message for a "sharedfile" that was deleted when iterating through the results of directory.getFiles().

I looked for documentation (no wiki exists), and also in the actual code but it's unclear.

Will sharedFile.isExisting() return false if STATUS_DELETE_PENDING is set?

If the answer to the above question is no, how do I work around this? Any suggestions would be appreciated if a workaround is needed.

Thank you!
Mike Poz

@hierynomus
Copy link
Owner

STATUS_DELETE_PENDING will return false for share.fileExists(file) or share.folderExists(folder).

The status means that the file is marked for deletion, and when all access to the file is closed, it will be deleted.

@hierynomus
Copy link
Owner

@mikepoz59 Does this answer the question?

@mikepoz59
Copy link
Author

Yes, apologies for the late response. Been in crunch mode at work. Thank you!

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

No branches or pull requests

2 participants