[Bugfix] This tool can not upload a directory

If some want to upload a direcotory,
it will show waring message.