<?php
namespace Illuminate\Filesystem;
use Illuminate\Contracts\Filesystem\LockTimeoutException;
class LockableFile
{
protected $handle;
protected $path;
protected $isLocked = false;
public function __construct($path, $mode)
{
$this->path = $path;
$this->ensureDirectoryExists($path);
$this->createResource($path, $mode);
}