using copyfile to copy the FOLDER AND its CONTENTS, i.e., preserve the folder
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
In linux one cna use rsync to copy the folder with its contents inside to another diretory. unfortucately, when I use copyfile, it copies the files within the folder but does not copy the folder containing them. I want to transfer the folder as a whole unit.
0 Kommentare
Antworten (1)
Hiro Yoshino
am 26 Mai 2023
Why don't you use system command instead?
You can use the linux commands as you wish.
system("touch myFile.txt") % create myFile.txt file here
[stts, cmdout] = system("ls -s") % list the current working directory
0 Kommentare
Siehe auch
Kategorien
Mehr zu Downloads finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!