Last Updated: February 25, 2016
·
323
· phaus

List active Files in Folder (e.g. Files that are uploaded via SCP)

#!/usr/local/bin/bash
FOLDER=/var/upload
FILES="$(/usr/bin/fstat -f ${FOLDER} | awk 'NR>1 {print $6}')"
for i in $FILES
do
    find -x ${FOLDER} -inum $i
done