|
|
|
@ -145,12 +145,12 @@ int shell_stat(struct console *con, size_t argc, const char **argv) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
switch (stat.type) { |
|
|
|
|
case MUFS_DIR: printf(" type: directory\n"); break; |
|
|
|
|
case MUFS_FILE: printf(" type: file\n"); break; |
|
|
|
|
case MUFS_DIR: fprintf(con->fp, " type: directory\n"); break; |
|
|
|
|
case MUFS_FILE: fprintf(con->fp, " type: file\n"); break; |
|
|
|
|
default: return -1; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
printf(" file size: %" PRIu32 " bytes\n", stat.file_size); |
|
|
|
|
fprintf(con->fp, " file size: %" PRIu32 " bytes\n", stat.file_size); |
|
|
|
|
|
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|