Closed 1aerostorm closed 2 years ago
At current moment, emptyDir() removes all files. We cannot filter out some file names or extensions. We cannot even filter out hidden files. E.g. it will remove .gitkeep file, and it makes this function useless for me.
emptyDir()
.gitkeep
We even cannot adjust the recursion depth...
For more complex use-case, you would be better off deleting the files in the directory individually.
@RyanZim so that library is too limited and useless.
At current moment,
emptyDir()
removes all files. We cannot filter out some file names or extensions. We cannot even filter out hidden files. E.g. it will remove.gitkeep
file, and it makes this function useless for me.We even cannot adjust the recursion depth...