this field is true
if this info corresponds to a regular file.
mutually exclusive with respect to isDirectory and isSymlink.
this field is true
if this info corresponds to a symbolic-link (symlink).
mutually exclusive with respect to isFile and isDirectory.
specify if a non-empty directory can be deleted recursively. without this option enabled, removing a non-empty folder will throw an error.
optional configuration options for deleting a filesystem entry (file, folder or symlink), used by the removeEntry function.
by explicitly specifying one of
isFile
,isDirectory
, orisSymlink
fields to be eithertrue
orfalse
, you can control which _type_s of filesystem-entries to delete, and which _type_s to ignore. the type of the entry is first identified via statEntry (which also tells us if it already exists or not).so, for instance:
config.isFile
is set totrue
, but thepath
corresponds to either a symlink or a folder, then they will not be deleted.config.isFile
is set tofalse
, but thepath
corresponds to a file, then the file will not be deleted.config.isFile
is set totrue
, and thepath
corresponds to a file, then the file will be deleted.config.isFile
is set tofalse
, and thepath
corresponds to either a symlink or a folder, then that entry will be deleted.