hierynomus / smbj

Server Message Block (SMB2, SMB3) implementation in Java
Other
713 stars 180 forks source link

[Question]: isFile method? #690

Closed isabsent closed 2 years ago

isabsent commented 2 years ago

As I understand

boolean isFolder = EnumWithValue.EnumUtils.isSet(f.getFileAttributes(), FileAttributes.FILE_ATTRIBUTE_DIRECTORY)

is a way to define is f a folder. But what is a way to define is f a file? Or do you mean a file is all that is not a folder?

hierynomus commented 2 years ago

Yes, anything that's not a folder is per definition a file.