A generic file trait.
Returns the unique ID of this file. Only unique within the manager it was opened from.
Returns the path to the file.
Returns the length of the file.
Synchronizes data and metadata to the final destination. This calls
std::fs::File::sync_all() on files, which ensures all filesystem
metadata (such as newly allocated blocks) and data is synchronized to
the destination device.
Safely closes the file after flushing any pending operations to disk.