|  | @@ 421-429 (lines=9) @@ | 
                                                            
                                    | 418 |  | 	 * | 
                                                            
                                    | 419 |  | 	 * @return \WP_Error|null | 
                                                            
                                    | 420 |  | 	 */ | 
                                                            
                                    | 421 |  | 	public function set_root( $path ) { | 
                                                            
                                    | 422 |  |  | 
                                                            
                                    | 423 |  | 		if ( empty( $path ) || ! is_string( $path ) || ! is_dir( $path ) ) { | 
                                                            
                                    | 424 |  | 			return new \WP_Error( 'invalid_directory_path', sprintf( __( 'Invalid root path <code>%s</code> must be a valid directory path', 'backupwordpress' ), $path ) ); | 
                                                            
                                    | 425 |  | 		} | 
                                                            
                                    | 426 |  |  | 
                                                            
                                    | 427 |  | 		$this->root = wp_normalize_path( $path ); | 
                                                            
                                    | 428 |  |  | 
                                                            
                                    | 429 |  | 	} | 
                                                            
                                    | 430 |  |  | 
                                                            
                                    | 431 |  | 	/** | 
                                                            
                                    | 432 |  | 	 * Get the filepath for the existing archive | 
                                                                                
                                |  | @@ 447-455 (lines=9) @@ | 
                                                            
                                    | 444 |  | 	 * | 
                                                            
                                    | 445 |  | 	 * @return null | 
                                                            
                                    | 446 |  | 	 */ | 
                                                            
                                    | 447 |  | 	public function set_existing_archive_filepath( $existing_archive_filepath ) { | 
                                                            
                                    | 448 |  |  | 
                                                            
                                    | 449 |  | 		if ( empty( $existing_archive_filepath ) || ! is_string( $existing_archive_filepath ) ) { | 
                                                            
                                    | 450 |  | 			return new \WP_Error( 'invalid_existing_archive_filepath', sprintf( __( 'Invalid existing archive filepath <code>%s</code> must be a non-empty (string)', 'backupwordpress' ), $existing_archive_filepath ) ); | 
                                                            
                                    | 451 |  | 		} | 
                                                            
                                    | 452 |  |  | 
                                                            
                                    | 453 |  | 		$this->existing_archive_filepath = wp_normalize_path( $existing_archive_filepath ); | 
                                                            
                                    | 454 |  |  | 
                                                            
                                    | 455 |  | 	} | 
                                                            
                                    | 456 |  |  | 
                                                            
                                    | 457 |  | 	/** | 
                                                            
                                    | 458 |  | 	 * Get the archive method that was used for the backup |