필터 지우기
필터 지우기

'movefile' does not delete source file in Linux system

조회 수: 2 (최근 30일)
Yu Li
Yu Li 2019년 3월 8일
편집: Yu Li 2019년 3월 11일
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
Walter Roberson
Walter Roberson 2019년 3월 9일
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 2019년 3월 9일
I can mannually delete files in this folder, does this mean 'I have the permission in tihs directory'?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by