Unverified Commit bc1df425 authored by Nathaniel's avatar Nathaniel Committed by GitHub
Browse files

Fix verify WP CLI command (#357)

Fix verify WP CLI command
parents b010ee34 17dac86a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -20,13 +20,13 @@ class S3_Uploads_WP_CLI_Command extends WP_CLI_Command {

		// Create a path in the base directory, with a random file name to avoid potentially overwriting existing data.
		$upload_dir = wp_upload_dir();
		$s3_path    = $upload_dir['basedir'] . '/' . mt_rand() . '.jpg';
		$s3_path    = $upload_dir['basedir'] . '/' . mt_rand() . '.txt';

		// Attempt to copy the local Canola test file to the generated path on S3.
		WP_CLI::print_value( 'Attempting to upload file ' . $s3_path );

		$copy = copy(
			dirname( dirname( __FILE__ ) ) . '/tests/data/sunflower.jpg',
			dirname( dirname( __FILE__ ) ) . '/verify.txt',
			$s3_path
		);

verify.txt

0 → 100644
+1 −0
Original line number Diff line number Diff line
• Todo: migrate to Altis