From b80271164354370e90bdbcd5feee1c509ec2a243 Mon Sep 17 00:00:00 2001 From: belliash Date: Thu, 12 Jan 2012 19:53:35 +0100 Subject: [PATCH] implement makeCleanDirectory() --- libraries/filesystem | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libraries/filesystem b/libraries/filesystem index 7465a5b..a207b0a 100644 --- a/libraries/filesystem +++ b/libraries/filesystem @@ -59,6 +59,16 @@ function makeCoreDirectories() { return 0 } +#------------------------------------------------------------------------------- +# Creates all components of the specified directories assuming thay are empty +# Parameters: %directory% +#------------------------------------------------------------------------------- +function makeCleanDirectory() { + rm -rf "${@}" + makeDirectory "${@}" + return ${?} +} + #------------------------------------------------------------------------------- # Creates all components of the specified directories # Parameters: %directory%