FarManager icon indicating copy to clipboard operation
FarManager copied to clipboard

Disable file caching for copy/move operations

Open birdie-github opened this issue 4 years ago • 0 comments

Description of the new feature or improvement

Win32 API allows to disable caching when accessing files which allows to avoid polluting file cache with unnecessary information which is often used just once.

It would be great if Far developers added a checkbox(s) for file copy/move dialogs which makes this feature possible.

Proposed technical implementation details (optional)

To achieve that files must be opened with FILE_FLAG_NO_BUFFERING: https://docs.microsoft.com/en-us/windows/win32/fileio/file-buffering

To think about that probably two checkboxes are needed:

[x] Disable read buffer [x] Disable write buffer

Disabling the second one could be detrimental to write speeds/optimizations.

This affects the move operation only when files are moved between different volumes.

birdie-github avatar Oct 07 '21 15:10 birdie-github