public function setPath($path)
	{
		if ( ! $this->files->exists($path) ) {
			$result = $this->files->put($path, '{}');
			if ( $result === false ) {
				throw new NotWritableException("Could not write to $path.");
			}
		}

		if ( ! $this->files->isWritable($path) ) {
			throw new NotWritableException("$path is not writable.");
		}

		$this->path = $path;
	}
public function setPath($path)
	{
		if ( ! $this->files->exists($path) ) {
			$result = $this->files->put($path, '{}');
			if ( $result === false ) {
				throw new NotWritableException("Could not write to $path.");
			}
		}

		if ( ! $this->files->isWritable($path) ) {
			throw new NotWritableException("$path is not writable.");
		}

		$this->path = $path;
	}
public function setPath ( $ path ) { if ( ! $ this -> files -> exists ( $ path ) ) { $ result = $ this -> files -> put ( $ path , '{}' ) ; if ( $ result === false ) { throw new NotWritableException ( "Could not write to $path." ) ; } } if ( ! $ this -> files -> isWritable ( $ path ) ) { throw new NotWritableException ( "$path is not writable." ) ; } $ this -> path = $ path ; }
Set the path for the JSON file.

@param string $path
@throws NotWritableException
Set the path for the JSON file .