Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/396.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 在python中读取文件或文件夹的自定义属性_Java_Python_Python 2.7_Java 8_File Attributes - Fatal编程技术网

Java 在python中读取文件或文件夹的自定义属性

Java 在python中读取文件或文件夹的自定义属性,java,python,python-2.7,java-8,file-attributes,Java,Python,Python 2.7,Java 8,File Attributes,我使用Java的设置文件/文件夹的属性。请按以下方式查找代码段: UserDefinedFileAttributeView userView=Files.getFileAttributeView(file,UserDefinedFileAttributeView.class); write(“test”,Charset.defaultCharset().encode(“true”); 现在我想使用Python读取属性。 我能够使用Java读取该属性test 有人可以指导我如何使用Python读

我使用Java的设置文件/文件夹的属性。请按以下方式查找代码段:

UserDefinedFileAttributeView userView=Files.getFileAttributeView(file,UserDefinedFileAttributeView.class);
write(“test”,Charset.defaultCharset().encode(“true”);
现在我想使用Python读取属性。
我能够使用Java读取该属性
test


有人可以指导我如何使用Python读取此属性吗

有没有人找到解决这个问题的办法。。。