Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

fs_cp [source_file] [dest_file]
fs_cp [source_file] [dest_dir]

Arguments

source_file

Source file path.

...

Available only if FS_SHELL_CFG_CP_EN is DEF_ENABLED and FS_CFG_RD_ONLY_EN is DEF_DISABLED.

Notes/Warnings

  1. 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.
  2. 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.