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

How to detect if "file" is actually file, directory, or something else #119

Open
leptians opened this issue Aug 30, 2020 · 1 comment
Open

Comments

@leptians
Copy link

I need to detect whether the "file" is actually "file", "directory" or something else.
I cannot test this for deleted event

@carlos-labrador
Copy link

I got the same question, when delete a file or folder file attribute from FileChangeEvent object is always filled. I assumed if it is a folder this should be empty.

Does somebody knows how to detec if the FileChangeEvent is coming from a folder or a file ?

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