Moving files via current folder window.

I have noticed that if I cut and paste a file or folder via the GUI, Matlab seems to physically move the location of file or folder on the hard drive (even if the move is within a partition). So I never use the Matlab current folder window to move files. But sometimes I forget and I cut and paste a large data file and then endure a long irritating wait (I thought I'll ask this question while I wait :-)) for the operation to complete. Is this behaviour intentional and if so why?
Typical OS behaviour is to change the internal pointers or links and not move the actual file. I would expect this to be the default Matlab behaviour also.
Thank You.

댓글 수: 4

Jan
Jan 2017년 7월 6일
편집: Jan 2017년 7월 6일
What exactly is "via the GUI"? Which GUI? Where did you paste the file? What is "changing the internal pointer"?
SK
SK 2017년 7월 6일
GUI == Current Folder Window
SK
SK 2017년 7월 6일
편집: SK 2017년 7월 6일
When the operating system moves files within a partition, it does not physically move the file on the drive. It changes the "internal pointer" or "internal reference" within the file system - whatever form that might take for the particular file system - which is why it takes almost no time to move a file from one location to another when cutting and pasting from the OS file manager - whichever one that may be.
Jan
Jan 2017년 7월 6일
Ah, I see. I've played a liitle with my Matlab R2016b/Win7/64. At first I had the same behaviour, then, after an intented duplication with the Ctrl-key, the expected moving is performed, not a duplication anymore. Confusing.

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

답변 (1개)

Jan
Jan 2017년 7월 6일
편집: Jan 2017년 7월 6일

0 개 추천

If I copy&paste a file in the windows explorer, it is duplicated and this is what I expect in folder views also, e.g. in the file seclection dialogs. Links are created only, if I drag files to the task bar or start menu.
Therefore I assume, the creation of the copy is the wanted and expected behavior for a copy&paste.

댓글 수: 1

SK
SK 2017년 7월 6일
I'm not talking about copy. I said cut and paste which most OS's will treat as a move.

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

카테고리

도움말 센터File Exchange에서 File Operations에 대해 자세히 알아보기

제품

질문:

SK
2017년 7월 6일

댓글:

Jan
2017년 7월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by