diff options
Diffstat (limited to 'node_modules/rimraf/test/setup.sh')
-rw-r--r-- | node_modules/rimraf/test/setup.sh | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/node_modules/rimraf/test/setup.sh b/node_modules/rimraf/test/setup.sh deleted file mode 100644 index 2602e6316..000000000 --- a/node_modules/rimraf/test/setup.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/bash - -set -e - -files=10 -folders=2 -depth=4 -target="$PWD/target" - -rm -rf target - -fill () { - local depth=$1 - local files=$2 - local folders=$3 - local target=$4 - - if ! [ -d $target ]; then - mkdir -p $target - fi - - local f - - f=$files - while [ $f -gt 0 ]; do - touch "$target/f-$depth-$f" - let f-- - done - - let depth-- - - if [ $depth -le 0 ]; then - return 0 - fi - - f=$folders - while [ $f -gt 0 ]; do - mkdir "$target/folder-$depth-$f" - fill $depth $files $folders "$target/d-$depth-$f" - let f-- - done -} - -fill $depth $files $folders $target - -# sanity assert -[ -d $target ] |