adrg/xdg

Custom file system support?

nathanhammond opened this issue · 4 comments

Hello @adrg! Would you be interested in a pull request that enabled custom file system support? (e.g. afero)

adrg commented

Hi @nathanhammond. Thank you for your interest in the library. Sure, that would be great.

I assume the PR would add an interface which defines all permitted file system operations and a 'local fs' implementation of that interface, which would be the default?

If that's the implementation that you feel like makes the most sense, then, yes!

I'll get you a draft PR for your consideration up shortly.

adrg commented

Sorry, I was just wondering if you were thinking of something along those lines 😄.
I'm not sure if it's the best way to do it, just my initial thoughts on this.

@nathanhammond are you working on it? Because I'm also interested in it hehe.