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 _NIOFileSystem for file system operations. #137

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zaneenders
Copy link
Contributor

Motivation:
Add support for _NIOFileSystem to move away from OSFileSystem as per issue #76.

Modifications:
Add SDKFileSystem that uses _NIOFileSystem. Change default AsyncFileSystem to SDKFileSystem

Result:

Using Swift NIO for file system operations.

Motivation:
Add support for _NIOFileSystem to move away from OSFileSystem as per issue swiftlang#76.

Modifications:
Add SDKFileSystem that uses _NIOFileSystem. Change default AsyncFileSystem to SDKFileSystem

Result:

Using Swift NIO for file system operations.
@MaxDesiatov
Copy link
Contributor

@swift-ci test

}
}

public func withOpenReadableFile<T: Sendable>(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should reinvent the wheel here and reimplement with* methods from scratch. The main motivation for using _NIOFileSystem in the first place is that it already implements these methods and provides necessary abstractions, like FileSystemProtocol.

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