Когда я добавляю в файл новый атрибут UserDefinedFileAttributeView, где Java сохраняет эту информацию?
В каталоге нет дополнительных файлов, файл не имеет новых атрибутов или деталей, когда я просматриваю свойства файла.
Мой код:
String versionAttrName = "report.version";
try {
Path path = FileSystems.getDefault().getPath(filePath, "");
UserDefinedFileAttributeView view = Files.getFileAttributeView(path, UserDefinedFileAttributeView.class);
view.write(versionAttrName, Charset.defaultCharset().encode(newVersion));
} catch (IOException e) {
System.out.println("7 - Error saving version to file! - "+ filePath + " - " + e.getMessage());
}
Подробнее здесь: https://stackoverflow.com/questions/161 ... ributeview