Filter löschen
Filter löschen

'movefile' does not delete source file in Linux system

2 Ansichten (letzte 30 Tage)
Yu Li
Yu Li am 8 Mär. 2019
Bearbeitet: Yu Li am 11 Mär. 2019
according to the description of function 'movefile':
if the source file and destination are in the same location, the 'movefile' function will rename the source file to the destination, which means that, if they are in the same folder, the source file should not exist anymore.
This feature works well in Windows system, but in Linux system, it seems that the source fils is still exist, the 'movefile' function create a same file as the sourcefile, but with a different name (destination).
just want know if there is any mistake with my operation, or...if this is due to the different feature between windows and Linux system
Thanks!
Yu
  2 Kommentare
Walter Roberson
Walter Roberson am 9 Mär. 2019
Do you have x permission in the source directory in order to be permitted to delete the file at its source?
Yu Li
Yu Li am 9 Mär. 2019
I can mannually delete files in this folder, does this mean 'I have the permission in tihs directory'?

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Startup and Shutdown 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!

Translated by