uploading fix for directory with no files to check