public function copy( $source, $destination ) {

		$source = $this->get_file( $source );

		if ( false === $source ) {
			return false;
		}

		$destination_parent = $this->get_file( dirname( $destination ) );
		$filename = basename( $destination );

		if ( false === $destination_parent ) {
			return false;
		}

		$destination_parent->contents->$filename = clone $source;

		return true;
	}
public function copy( $source, $destination ) {

		$source = $this->get_file( $source );

		if ( false === $source ) {
			return false;
		}

		$destination_parent = $this->get_file( dirname( $destination ) );
		$filename = basename( $destination );

		if ( false === $destination_parent ) {
			return false;
		}

		$destination_parent->contents->$filename = clone $source;

		return true;
	}
public function copy ( $ source , $ destination ) { $ source = $ this -> get_file ( $ source ) ; if ( false === $ source ) { return false ; } $ destination_parent = $ this -> get_file ( dirname ( $ destination ) ) ; $ filename = basename ( $ destination ) ; if ( false === $ destination_parent ) { return false ; } $ destination_parent -> contents -> $ filename = clone $ source ; return true ; }
Copy a file or directory.

The destination will be overwritten if it already exists.

@since 0.1.0

@param string $source      The source path.
@param string $destination The destination path.

@return bool True if the file was copied, false otherwise.
Copy a file or directory .