I set an attribute for a file/folder using Java's UserDefinedFileAttributeView
. Please find the code snippet as below:
UserDefinedFileAttributeView userView = Files.getFileAttributeView(file, UserDefinedFileAttributeView.class);
userView.write("test", Charset.defaultCharset().encode("true"));
Now I want to read the attribute using Python.
I am able to read that attribute test
using Java
Could someone guide me how to read this attribute using Python?