webp-convert icon indicating copy to clipboard operation
webp-convert copied to clipboard

Extract code for handling files into new library

Open rosell-dk opened this issue 2 years ago • 0 comments

The library could be called "FileUtils". Stuff that could be moved to file util lib:

  • Helpers/FileExists (split it into HonestFileExists and FileExistsTryHard)
  • DestinationPreparationTrait::checkDestinationWritable has some code for checking if a directory is writable
  • There are also file functions in WebPExpress

Code that checks for sanity could go into own library, ie "SanityCheck":

  • PathChecker.php
  • There are also sanity checking functions in WebPExpress

rosell-dk avatar Apr 18 '22 15:04 rosell-dk