Force any updates for the underlying file to storage.
Force any updates for the underlying file to storage.
If true, also attempts to force file metadata updates to storage.
Acquire a lock on the specified region of the underlying file.
Acquire a lock on the specified region of the underlying file.
the start of the region to lock.
the size of the region to lock.
to request a shared lock across process boundaries (may be converted to an exclusive lock on some operating systems).
a lock object which can be used to unlock the region.
Acquire an exclusive lock on the underlying file.
Acquire an exclusive lock on the underlying file.
a lock object which can be used to unlock the file.
Read the specified number of bytes at a particular offset.
Read the specified number of bytes at a particular offset.
the number of bytes to read.
the offset from the start of the file.
a number of bytes from the file (at most, numBytes in size).
Report the current size of the file.
Report the current size of the file.
the size of the file.
Truncate the underlying file to the specified size.
Truncate the underlying file to the specified size.
the size of the file after truncation.
Attempt to acquire a lock on the specified region of the underlying file.
Attempt to acquire a lock on the specified region of the underlying file.
the start of the region to lock.
the size of the region to lock.
to request a shared lock across process boundaries (may be converted to an exclusive lock on some operating systems).
if the lock could be acquired, a lock object which can be used to unlock the region.
Attempt to acquire an exclusive lock on the underlying file.
Attempt to acquire an exclusive lock on the underlying file.
if the lock could be acquired, a lock object which can be used to unlock the file.
Unlock the (exclusive or regional) lock represented by the supplied Lock
.
Unlock the (exclusive or regional) lock represented by the supplied Lock
.
the lock object which represents the locked file or region.
Write the specified bytes at a particular offset.
Write the specified bytes at a particular offset.
the bytes to write to the FileHandle
.
the offset at which to write the bytes.
the number of bytes written.
Provides the ability to read/write/lock/inspect a file in the effect
F
.To construct a
FileHandle
, use the methods in the fs2.io.file.pulls object.