Closed isabsent closed 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?
Yes, anything that's not a folder is per definition a file.
As I understand
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?