Good day! I am completely new to java, I have the following question, is the receipt of folder and drive attributes different from files? I mean the name, the size of the folder or drive, the date of creation, the date of the change.
Here is an example of getting an attribute from a file:
File file = new File(pach); if (file.isFile()) { //заносим данные в структуру FI FI.NameFile = file.getName(); FI.TypeFile = "file"; FI.SizeFile = (int) file.length(); FI.DateCreate = "???"; FI.DateEdit = new Date(file.lastModified()); } How to get in this way the attributes of folders and drives?