cmd: Fix the "move" command the same way as the "copy" command.
This commit is contained in:
parent
aef6e2d35d
commit
9d90abe1b9
|
@ -519,6 +519,8 @@ HANDLE hff;
|
||||||
|
|
||||||
/* If 2nd parm is directory, then use original filename */
|
/* If 2nd parm is directory, then use original filename */
|
||||||
GetFullPathName (param2, sizeof(outpath), outpath, NULL);
|
GetFullPathName (param2, sizeof(outpath), outpath, NULL);
|
||||||
|
if (outpath[strlen(outpath) - 1] == '\\')
|
||||||
|
outpath[strlen(outpath) - 1] = '\0';
|
||||||
hff = FindFirstFile (outpath, &fd);
|
hff = FindFirstFile (outpath, &fd);
|
||||||
if (hff != INVALID_HANDLE_VALUE) {
|
if (hff != INVALID_HANDLE_VALUE) {
|
||||||
if (fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) {
|
if (fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) {
|
||||||
|
|
Loading…
Reference in New Issue