cmd.exe: Only write 'bytes free' message if a file was displayed during dir.
This commit is contained in:
parent
bf626f960b
commit
0739ad2246
|
@ -284,7 +284,7 @@ void WCMD_directory (void) {
|
||||||
lstrcpyn (drive, path, 4);
|
lstrcpyn (drive, path, 4);
|
||||||
GetDiskFreeSpaceEx (drive, &avail, &total, &free);
|
GetDiskFreeSpaceEx (drive, &avail, &total, &free);
|
||||||
|
|
||||||
if (!bare) {
|
if (errorlevel==0 && !bare) {
|
||||||
if (recurse) {
|
if (recurse) {
|
||||||
WCMD_output ("\n\n Total files listed:\n%8d files%25s bytes\n",
|
WCMD_output ("\n\n Total files listed:\n%8d files%25s bytes\n",
|
||||||
file_total, WCMD_filesize64 (byte_total));
|
file_total, WCMD_filesize64 (byte_total));
|
||||||
|
|
Loading…
Reference in New Issue