@TJamuna
are you moving the folder or the file?
are you getting error only when files are empty?
cheers