satis icon indicating copy to clipboard operation
satis copied to clipboard

Purge fails if unreferenced file to remove is already missing

Open ikari7789 opened this issue 3 years ago • 1 comments

Not sure if this is the expected behavior or not to just fail instead of continue, but it seems that there is possibly some missing exception catching around unlinking of files?

$ php bin/satis purge ../satis.json /path/to/repository
File '/path/to/repository/include/all$4ab2d531543982a6cac0c06a846341276ba2c450.json' does not exist, defined in "includes" in '/path/to/repository/packages.json'
In PurgeCommand.php line 131:

  unlink(/path/to/repository/dist/org/package/org-package-3fddb6037bea4aee926
  5210f76e8e64068eb076e-zip-a8e20d.zip): No such file or directory

purge [<file> [<output-dir> [<dry-run>]]]

ikari7789 avatar Nov 28 '22 08:11 ikari7789

Pull requests are welcome.

alcohol avatar Dec 06 '22 10:12 alcohol