title: How to check if folder is empty or have folder file use shell-script?
body: <p>i have a question</p>
  
  <p>i try some function like</p>
  
  <blockquote>
    <p>DIR=/path/tmp/</p>
    
    <p>if [ -d "$DIR" ]; then  </p>
  </blockquote>
  
  <p>and</p>
  
  <blockquote>
    <p>if [ -f "$DIR" ]; then </p>
  </blockquote>
  
  <p>but only check /path/tmp this path</p>
  
  <p>how can i do?</p>