gpt4 book ai didi

java - 在哪里可以找到属性名称列表?

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:51:28 24 4
gpt4 key购买 nike

我只是想知道在使用以下内容时是否有要引用的属性名称列表:

However, you can set a DOS attribute using the setAttribute(Path, String, Object, LinkOption...) method, as follows:

Path file = ...; Files.setAttribute(file, "dos:hidden", true);

在这种情况下,.isHidden() 方法被称为hidden,那么isReadOnly() 呢?我尝试了 dos:readOnly 和其他组合,但是没有达到想要的结果。你知道有哪些链接有这些属性“引用”的列表吗?提前致谢。

最佳答案

http://www.kodejava.org/how-do-i-set-the-value-of-file-attributes/

//
// Set a new file attributes.
//
Files.setAttribute(file, "dos:archive", false);
Files.setAttribute(file, "dos:hidden", false);
Files.setAttribute(file, "dos:readonly", false);
Files.setAttribute(file, "dos:system", false);

关于java - 在哪里可以找到属性名称列表?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18109418/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com