Skip to content

feat: add setAttributes API to FileSysteming protocol#278

Merged
pepicrft merged 1 commit intomainfrom
feat/set-last-modification-date
Feb 27, 2026
Merged

feat: add setAttributes API to FileSysteming protocol#278
pepicrft merged 1 commit intomainfrom
feat/set-last-modification-date

Conversation

@pepicrft
Copy link
Contributor

This adds a generic setAttributes API to the FileSysteming protocol so callers can set file attributes (modification date, POSIX permissions) without reaching for FileManager directly.

The implementation uses a type-safe FileAttribute enum that maps to FileAttributeKey values under the hood. The FileManager.setAttributes call is dispatched off the main thread via Task.

This allows setting the last access and modification times of a file or
directory through the FileSysteming protocol. On non-Windows platforms it
uses NIO's async FileHandle.setTimes API, and on Windows it falls back
to FileManager.
@pepicrft pepicrft force-pushed the feat/set-last-modification-date branch from 91b0ddd to ac101ca Compare February 27, 2026 14:59
@pepicrft pepicrft merged commit a281169 into main Feb 27, 2026
11 checks passed
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

Successfully merging this pull request may close these issues.

2 participants