fix directory copy or move bug and add file create feature