FileAttributes (@NotNull VirtualFile file) { FSItem item = convert(file); if (item == null) return null; long length = item instanceof FSFile ? ((FSFile)item).myContent.length : 0; // let's make TempFileSystem case-sensitive return new FileAttributes(item.isDirectory(), false, false, false, length, item.myTimestamp, item.myWritable, FileAttributes.CaseSensitivity.SENSITIVE); }