Expand description
VFS management commands
Re-exportsยง
use crate::shell::ShellError;๐use crate::shell_println;๐use crate::vfs;๐use crate::vfs::scheme::DT_DIR;๐use crate::vfs::OpenFlags;๐use alloc::string::String;๐use alloc::vec::Vec;๐use spin::Lazy;๐pub use cat::cmd_cat;pub use cd::cmd_cd;pub use cp::cmd_cp;pub use df::cmd_df;pub use ls::cmd_ls;pub use mkdir::cmd_mkdir;pub use mount::cmd_mount;pub use mv::cmd_mv;pub use rm::cmd_rm;pub use scheme::cmd_scheme;pub use stat::cmd_stat;pub use touch::cmd_touch;pub use umount::cmd_umount;pub use write::cmd_write;
Modulesยง
- cat ๐
- cd ๐
- cp ๐
- df ๐
- ls ๐
- mkdir ๐
- mount ๐
- mv ๐
- rm ๐
- scheme ๐
- stat ๐
- touch ๐
- umount ๐
- write ๐
Staticsยง
- SHELL_
CWD ๐ - Current working directory for the chevron shell.
Functionsยง
- cmd_
cat_ ๐impl - Display file contents. Display file contents or piped input.
- cmd_
cd_ ๐impl - Change the shell working directory.
- cmd_
cp_ ๐impl - cmd_
df_ ๐impl - cmd_
ls_ ๐impl - List directory contents or mount points.
- cmd_
mkdir_ ๐impl - Create a new directory.
- cmd_
mount_ ๐impl - Performs the cmd mount operation.
- cmd_
mv_ ๐impl - cmd_
rm_ ๐impl - Remove a file or directory.
- cmd_
scheme_ ๐impl - List registered schemes.
- cmd_
stat_ ๐impl - cmd_
touch_ ๐impl - Create a new empty file.
- cmd_
umount_ ๐impl - Performs the cmd umount operation.
- cmd_
write_ ๐impl - format_
mode ๐ - Format st_mode into a 10-char permission string like
drwxr-xr-x. - format_
mtime ๐ - Format mtime (seconds since epoch) into
Mon DD HH:MM. - get_cwd
- Read the current working directory.
- normalize_
path ๐ - Collapse
..,.and redundant/in an absolute path. - resolve_
shell_ path - Resolve
pathrelative to the shell CWD. - set_cwd ๐
- Sets cwd.