public function putContents($file, $contents, $flag = null, $context = null)
    {
        $file = $this->basePath.'/'.ltrim($file, '/\\');

        return file_put_contents($file, $contents, $flag, $context);
    }