private function moveFileToExternalStorage($filePath,Folder $folder = null)
	{
		$oldPath = $this->getInternalPath() . $filePath;
		$newPath = $this->getExternalPath() . $filePath;

		$this->createBothFoldersInFileSystem($folder);

		if ( ! rename($oldPath, $newPath)) {
//			throw new Exception\RuntimeException('Failed to move file to the public storage');
			$filename = basename($newPath);
			$this->container->getLogger()->warn('Failed to move file (' . $filename . ') to the public storage');
		}
	}
private function moveFileToExternalStorage($filePath,Folder $folder = null)
	{
		$oldPath = $this->getInternalPath() . $filePath;
		$newPath = $this->getExternalPath() . $filePath;

		$this->createBothFoldersInFileSystem($folder);

		if ( ! rename($oldPath, $newPath)) {
//			throw new Exception\RuntimeException('Failed to move file to the public storage');
			$filename = basename($newPath);
			$this->container->getLogger()->warn('Failed to move file (' . $filename . ') to the public storage');
		}
	}
private function moveFileToExternalStorage ( $ filePath , Folder $ folder = null ) { $ oldPath = $ this -> getInternalPath ( ) . $ filePath ; $ newPath = $ this -> getExternalPath ( ) . $ filePath ; $ this -> createBothFoldersInFileSystem ( $ folder ) ; if ( ! rename ( $ oldPath , $ newPath ) ) { //			throw new Exception\RuntimeException('Failed to move file to the public storage'); $ filename = basename ( $ newPath ) ; $ this -> container -> getLogger ( ) -> warn ( 'Failed to move file (' . $ filename . ') to the public storage' ) ; } }
Actual file move to external storage
@param string $filePath
@param Folder $folder
Actual file move to external storage