Remove Files & Directories¶
Use with extreme care. This exposes the system command rm to the C++ interface. There are very few checks performed here, so if this goes wrong you can delete files you might not want to!
-
inline void
JSL::rm(std::string location, bool recursive)¶ Calls a system-rm on the provided location, and attempts to remove it.
- Parameters:
location – The target location on which rm is called
recursive – If true, appends -r to the command, and so removes all subdirectories etc.