Sha256: 38ae341efe8670bb5aa72be3f00a362530000ba36c0851be791b1d2850263643

Contents?: true

Size: 602 Bytes

Versions: 52

Compression:

Stored size: 602 Bytes

Contents

#!/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 ]

Version data entries

52 entries across 31 versions & 9 rubygems

Version Path
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/temp/node_modules/rimraf/test/setup.sh
locomotivecms-3.4.0 app/javascript/node_modules/temp/node_modules/rimraf/test/setup.sh
dragonfly_puppeteer-0.1.0 node_modules/temp/node_modules/rimraf/test/setup.sh
es6_tilt-0.1.2 test/dummy/app/assets/javascripts/node_modules/fsevents/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/rimraf/test/setup.sh
es6_tilt-0.1.1 test/dummy/app/assets/javascripts/node_modules/fsevents/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/rimraf/test/setup.sh
es6_tilt-0.1.0 test/dummy/app/assets/javascripts/node_modules/fsevents/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/rimraf/test/setup.sh
hooch-0.4.2 jasmine/node_modules/karma/node_modules/rimraf/test/setup.sh
hooch-0.4.1 jasmine/node_modules/karma/node_modules/rimraf/test/setup.sh
hooch-0.4.0 jasmine/node_modules/karma/node_modules/rimraf/test/setup.sh
gulp_assets-1.0.0.pre.5 template/node_modules/gulp-sass/node_modules/node-sass/node_modules/pangyp/node_modules/rimraf/test/setup.sh
gulp_assets-1.0.0.pre.4 template/node_modules/gulp-sass/node_modules/node-sass/node_modules/pangyp/node_modules/rimraf/test/setup.sh
gulp_assets-1.0.0.pre.3 template/node_modules/gulp-sass/node_modules/node-sass/node_modules/pangyp/node_modules/rimraf/test/setup.sh
hooch-0.3.0 jasmine/node_modules/karma/node_modules/rimraf/test/setup.sh
hooch-0.2.1 jasmine/node_modules/karma/node_modules/rimraf/test/setup.sh
hooch-0.2.0 jasmine/node_modules/karma/node_modules/rimraf/test/setup.sh
hooch-0.1.0 jasmine/node_modules/karma/node_modules/rimraf/test/setup.sh
hooch-0.0.8 jasmine/node_modules/karma/node_modules/rimraf/test/setup.sh
hooch-0.0.7 jasmine/node_modules/karma/node_modules/rimraf/test/setup.sh
hooch-0.0.6 jasmine/node_modules/karma/node_modules/rimraf/test/setup.sh
entangled-0.0.16 spec/dummy/public/node_modules/karma/node_modules/rimraf/test/setup.sh