if(-d $files[$f]) #exist and directory #or if(-f $files[$f]) #exist and file #or if(-s $files[$f]) #exist and greater then 0