Removing files to filesystem

Removing files to filesystem

Mongo streams allows to remove files based on previsously llisted files, in very simillar way how the reading of the files work.
Instead of returning content of the file, it will return Unit.

Files can be removed with either single file syntax or multiple file syntax:

  • to remove single file use:
 list named ("old_file.txt") and removeFile
  • to remove multiple files use:
 list files() foreach removeFile).flatMapProcess(_._2)

Total for specification FSDeleteSpec
Finished in923 ms
Results2 examples, 0 failure, 0 error