stashbox icon indicating copy to clipboard operation
stashbox copied to clipboard

Abstract away filesystem writes.

Open KrishKayc opened this issue 5 years ago • 0 comments

The app directly writes to files and creates directories. Example saveSite() => os.MkdirAll, iouti.WriteFile.

We need to abstract away these file writing and directory creation into an interface. (Ex: Writer, FSHandler etc..)

This will help in unit test being independent of filesystem and faster unit tests in general (From unit tests, we can use our mock fswriter)

KrishKayc avatar Oct 15 '20 12:10 KrishKayc