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

Support some basic file-system operations for kotlinx.io.files.Path #211

Closed
fzhinkin opened this issue Aug 14, 2023 · 1 comment · Fixed by #213
Closed

Support some basic file-system operations for kotlinx.io.files.Path #211

fzhinkin opened this issue Aug 14, 2023 · 1 comment · Fixed by #213
Assignees

Comments

@fzhinkin
Copy link
Collaborator

kotlinx.io.files.Path was added only to provide some basic operations with files and it'll be eventually replaced with proper filesystem API.

However, until it happens, there should be a way to perform some basic filesystem operations.
Following need to be added:

  • delete files
  • check file/directory existence
  • move files atomically
  • mkdirs
@fzhinkin fzhinkin self-assigned this Aug 14, 2023
@fzhinkin
Copy link
Collaborator Author

Also need a way to get a path to temporary dir

@fzhinkin fzhinkin linked a pull request Aug 21, 2023 that will close this issue
fzhinkin added a commit that referenced this issue Sep 13, 2023
* Added FileSystem interface providing basic operations on paths: reading/writing files, creating directories, moving and deleting files and directories, and gathering fs node metadata.
* Provided default FileSystem implementation - SystemFileSystem
* Extended Path API to allow getting parent paths and constructing children's paths using platform-dependent APIs under the hood.
* Added API to get path to the system temporary directory

Closes: #206 #211 #212 #183 #214

---------

Co-authored-by: Jeff Lockhart <[email protected]>
@fzhinkin fzhinkin added the fs label Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant