Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Copy a file.

Usages

fs_cp [source_file] [dest_file]

fs_cp [source_file] [dest_dir]

Arguments

source_file

Source file path.

dest_file

Destination file path.

dest_dir

Destination directory path.

Output

None.

Required Configuration

Available only if FS_SHELL_CFG_CP_EN is DEF_ENABLED and FS_CFG_RD_ONLY_EN is DEF_DISABLED.

Notes/Warnings

In the first form of this command, neither argument may be an existing directory. The contents of source_file will be copied to a file named dest_file located in the same directory as source_file.

In the second form of this command, the first argument must not be an existing directory and the second argument must be an existing directory. The contents of source_file will be copied to a file with name formed by concatenating dest_dir, a path separator character and the final component of source_file.

  • No labels