Moving Files

Files or directories can be moved from one location to another.

Use the following CLI syntax to move files:

    file
        — move [source-url] string [destination-url] string [client-tls-profile string] [direct-http] [force] [proxy string] 

The following example moves the md-config.cfg file to the test1/test2 directory.

[/file "cf3:\test1\"]
A:admin@node-2# list cf3:\test1/test2

Volume in drive cf3 on slot A is TIMOS_VM_CF.

Volume in drive cf3 on slot A is formatted as FAT32

Directory of cf3:\test1\test2

09/01/2020  08:13p      <DIR>          ./
09/01/2020  08:13p      <DIR>          ../
09/04/2020  06:36p                 874 bof.cfg
09/04/2020  06:35p               11788 my_test.cfg
09/04/2020  06:43p      <DIR>          test3/
               2 File(s)                  12662 bytes.
               3 Dir(s)                10629632 bytes free.

[/file "cf3:\test1\"]
A:admin@node-2# move md-config.cfg test2
Moving file cf3:\test1\md-config.cfg ... OK
cf3:\test1\md-config.cfg

[/file "cf3:\test1\"]
A:admin@node-2# change-directory test2

[file "cf3:\test1\test2"]
A:admin@node-2# list

Volume in drive cf3 on slot A is TIMOS_VM_CF.

Volume in drive cf3 on slot A is formatted as FAT32

Directory of cf3:\test1\test2

09/01/2020  08:13p      <DIR>          ./
09/01/2020  08:13p      <DIR>          ../
09/04/2020  06:36p                 874 bof.cfg
04/28/2020  03:15p               11401 md-config.cfg
09/04/2020  06:35p               11788 my_test.cfg
09/04/2020  06:43p      <DIR>          test3/
               3 File(s)                  24063 bytes.
               3 Dir(s)                10629632