Skip to content

Commit

Permalink
✨ (fs): Add filecount
Browse files Browse the repository at this point in the history
  • Loading branch information
thibmaek committed May 9, 2022
1 parent 27d5e1e commit 86c50e0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/fs/filecount.sh
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 86c50e0

Please sign in to comment.