mirror of
https://github.com/php/php-src.git
synced 2024-12-04 07:14:10 +08:00
1dd31c38a6
- add script which creates the directory tree for better scaling of mod_files I have to decide yet whether we implement the garbage collection in the module or if we simply let the user do find path -ctime +1 | xargs rm
17 lines
240 B
Bash
17 lines
240 B
Bash
#! /bin/sh
|
|
|
|
if test "$2" = ""; then
|
|
echo "usage: $0 basedir depth"
|
|
exit 1
|
|
fi
|
|
|
|
if test "$2" = "0"; then
|
|
exit 0
|
|
fi
|
|
|
|
for i in a b c d e f 0 1 2 3 4 5 6 7 8 9; do
|
|
newpath="$1/$i"
|
|
mkdir $newpath || exit 1
|
|
sh $0 $newpath `expr $2 - 1`
|
|
done
|