Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use "unix" attribute views for UNIX configuration #371

Closed
electrum opened this issue Sep 26, 2024 · 1 comment
Closed

Use "unix" attribute views for UNIX configuration #371

electrum opened this issue Sep 26, 2024 · 1 comment
Labels
P3 type=defect Bug, not working as expected

Comments

@electrum
Copy link

What is the reason that Configuration.unix() uses setAttributeViews("basic") rather than setAttributeViews("unix")? This would match the behavior of the JDK UNIX file system provider. I'm happy to send a patch if this change is desired.

@chaoren
Copy link
Member

chaoren commented Sep 26, 2024

See

* <li>supports only the {@linkplain BasicFileAttributeView basic} file attribute view, to avoid
* overhead for unneeded attributes

and
* <p>To create a modified version of this configuration, such as to include the full set of UNIX
* file attribute views, {@linkplain #toBuilder() create a builder}.
*
* <p>Example:
*
* <pre>
* Configuration config = Configuration.unix().toBuilder()
* .setAttributeViews("basic", "owner", "posix", "unix")
* .setWorkingDirectory("/home/user")
* .build(); </pre>

@chaoren chaoren closed this as completed Sep 26, 2024
@chaoren chaoren added type=defect Bug, not working as expected P3 labels Sep 26, 2024
@chaoren chaoren closed this as not planned Won't fix, can't repro, duplicate, stale Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 type=defect Bug, not working as expected
Projects
None yet
Development

No branches or pull requests

2 participants