All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
sbndpoms_ifdh_mkdir-p.sh File Reference

Go to the source code of this file.

Functions

 ifdh_mkdir_p ()
 

Function Documentation

ifdh_mkdir_p ( )

Definition at line 6 of file sbndpoms_ifdh_mkdir-p.sh.

6  {
7  local dir=$1
8  local force=$2
9  echo "$0: Creating $dir with forced protocol: $force"
10 
11  if [ `ifdh ls $dir 0 $force | wc -l` -gt 0 ]
12  then
13  : # we're done
14  else
15  ifdh_mkdir_p `dirname $dir` $force
16  ifdh mkdir $dir $force
17  fi
18 }
then echo Invalid dCache scratch not copying back else ifdh ls
Definition: run_job.sh:111
then local
tuple dir
Definition: dropbox.py:28