Skip to content

Commit ff29cd7

Browse files
committed
slashes
1 parent beef812 commit ff29cd7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/DB_Command_SQLite.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ protected function sqlite_export( $file, $assoc_args ) {
302302
if ( false === $temp_db ) {
303303
WP_CLI::error( 'Could not create temporary database file for export.' );
304304
}
305+
$temp_db = str_replace( '\\', '/', $temp_db );
305306

306307
if ( ! copy( $db_path, $temp_db ) ) {
307308
// Clean up temporary file if the copy operation fails.
@@ -412,6 +413,7 @@ protected function sqlite_import( $file, $assoc_args ) {
412413
if ( ! $db_path ) {
413414
WP_CLI::error( 'Could not determine the database path.' );
414415
}
416+
$db_path = str_replace( '\\', '/', $db_path );
415417

416418
if ( ! file_exists( $db_path ) ) {
417419
WP_CLI::error( 'Database does not exist.' );

0 commit comments

Comments
 (0)