fix bug: the name changed to no dot after upload the hide file
remove debug code
get the file count
fix bug: create directory manually when the directory is empty