public function setPublic(FileAbstraction $file, $public = true)
	{

		if ($file instanceof File) {
			$this->setPublicForFile($file, $public);
		} else if ($file instanceof Folder) {
			$this->setPublicForFolder($file, $public);
		} else {
			throw new Exception\RuntimeException('Wrong entity passed');
		}
	}
public function setPublic(FileAbstraction $file, $public = true)
	{

		if ($file instanceof File) {
			$this->setPublicForFile($file, $public);
		} else if ($file instanceof Folder) {
			$this->setPublicForFolder($file, $public);
		} else {
			throw new Exception\RuntimeException('Wrong entity passed');
		}
	}
public function setPublic ( FileAbstraction $ file , $ public = true ) { if ( $ file instanceof File ) { $ this -> setPublicForFile ( $ file , $ public ) ; } else if ( $ file instanceof Folder ) { $ this -> setPublicForFolder ( $ file , $ public ) ; } else { throw new Exception \ RuntimeException ( 'Wrong entity passed' ) ; } }
Moves file or folder to public storage
@param FileAbstraction $file
@param boolean $public true by default. If public == false moves file to private storage
Moves file or folder to public storage