0
I’m knocking my head to create this script.
I need a script, can be in bash or php even, check if a directory has some file inside, that is not another directory.
This directory that I have to scan is in linux server that I have here in the company, so the script can be in bash, which I put to run daily on linux. Or in PHP, I make linux run the PHP file, without problems tb.
Someone knows how to do?
Have you tried
ls /path/to | wc -l
??– Valdeir Psr
I’ll test it here Valdeir, but from what I read here I think it already helps me.
– Oliver