public FileAttributes getFileAttributes(File f) {
		FileType fileType = FSUtilities.getFileType(f);
		String symLinkDest = fileType == FileType.SYMBOLIC_LINK ? FSUtilities.readSymlink(f) : null;
		return FileAttributes.of(
			FileAttribute.create(NAME_ATTR, f.getName()),
			FileAttribute.create(FILE_TYPE_ATTR, fileType),
			FileAttribute.create(SIZE_ATTR, f.length()),
			FileAttribute.create(MODIFIED_DATE_ATTR, new Date(f.lastModified())),
			symLinkDest != null ? FileAttribute.create(SYMLINK_DEST_ATTR, symLinkDest) : null);
	}
Create a {@link FileAttributes} container with info about the specified local file.

@param f {@link File} to query
@return {@link FileAttributes} instance
Ghidra/Features/Base/src/main/java/ghidra/formats/gfilesystem/LocalFileSystem.java