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

Should FileManager.attributesOfItem(atPath:) expose ADS on Windows? #1166

Open
jakepetroules opened this issue Feb 12, 2025 · 1 comment
Open

Comments

@jakepetroules
Copy link

Should FileManager.attributesOfItem(atPath:) and similar APIs expose Alternate Data Streams on Windows? They're somewhat logically equivalent to extended attributes on Unix-y platforms, so it might make sense.

@jmschonfeld
Copy link
Contributor

If they are logically equivalent to extended attributes then to me it'd make sense to provide them in the same manner that we provide extended attributes on Unix platforms.

However attributesOfItem(atPath:) does not provide extended attributes on Unix platforms as API either so this isn't a lack of functionality for Windows in specific but a lack of API in general. It could be possible to add a new FileAttributeKey that exposes a value that represents xattrs on Unix and ADS on Windows in a cross-platform manner (ignoring it on platforms that don't support xattrs like WASI and Android)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants