diff --git a/lib/fs/filecount.sh b/lib/fs/filecount.sh new file mode 100755 index 0000000..24c4347 --- /dev/null +++ b/lib/fs/filecount.sh @@ -0,0 +1,8 @@ +#! /usr/bin/env bash + +# ------------------------------------------------------------------------------ +# fs.filecount(): Gets the total amount of files in current dir. +# ------------------------------------------------------------------------------ +function oy::fs.filecount() { + find . -type f | wc -l +}