Fs2: Add more operations to fs2-io to make it a fully featured file library

Created on 4 Jul 2019  路  6Comments  路  Source: typelevel/fs2

We talked about this on gitter at some point and the lack of a fully featured file library in the cats-effect ecosystem is something that should be addressed.

Below are some features I'd like to see added to fs2-io, note that a lot of those aren't streaming operations, but I feel like they're still very much relevant here.

  • moving files
  • deleting files
  • copying files
  • create directories
  • list files and folders at given path
  • check if file or folder exists
  • read filesystem metadata
  • symlinks
  • permissions
  • temp files

I can start working on some of these soon if no one objects :)

Most helpful comment

Hi. Is there still an interest in adding more of the functionality above and is anyone else working on them? I think some towards the bottom of the list are not done yet. I was going to look at permissions unless anyone else plans to.

All 6 comments

I like the idea and would be in for contributing some code - did you start working on it already?

Yes, I can push a WIP branch :)

Just opened a PR for listing files, complementing your WIP, but there are still operations missing in case someone wants to contribute :)

Hi. Is there still an interest in adding more of the functionality above and is anyone else working on them? I think some towards the bottom of the list are not done yet. I was going to look at permissions unless anyone else plans to.

Hi @LukaJCB, just wondering what sort of implementation you had in mind for the temporary files (and I guess directories as well)? I was initially assuming a stream from a resource that would delete the file during the release? Or were you thinking more just create a wrapper for nio.Files.createTempFile and leave deletion for the user at some other point?

Going through the list of items on the opening message, it looks as if the Files[F[_]] trait, together with FileHandle[F[_]], are implementing most of the features requested on this Issue. This, together with the lack of activity for a year, is good reason to close this issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mpilquist picture mpilquist  路  3Comments

Taig picture Taig  路  7Comments

diesalbla picture diesalbla  路  5Comments

LukaJCB picture LukaJCB  路  5Comments

rintcius picture rintcius  路  10Comments