HH\Lib\File\Handle
Requires the Hack Standard Library - Experimental Additions to be installed.
Facebook Engineer?
This function is available as File\Handle()
in Facebook's www repository.
Interface Synopsis
namespace HH\Lib\File;
interface Handle implements \HH\Lib\IO\SeekableHandle {...}
Public Methods
->getPath(): Path
Get the name of this file->getSize(): int
Get the size of the file->lock(LockType $mode): Lock
Get a shared or exclusive lock on the file->tryLockx(LockType $mode): Lock
Immediately get a shared or exclusive lock on a file, or throw