Greetings StackOverflow,
I'm working on a small project on Windows which needs to read the output of GSUTIL's copy function. Problem is, the output of the copy function doesn't seem to work via the Standard Output. Also, the behavior of GSUTIL is inconsistent: piping output doesn't work with the copy function but using the list function is does work.
When I use the following command in my command prompt the output is displayed in the command prompt but not redirected to the text file. This command doesn't work right:
C:\gsutil> python gsutil cp "file://C:/test_files/*" gs://gs_teststore/ > gsutil_cp.txt
On the otherhand when I use the list function (ls
) the output does work through the standard output and works at I hoped:
C:\gsutil> python gsutil ls gs://gs_teststore/ > gsutil_ls.txt
Is there a way to capture the output from the copy function of the GSUTIL?