I am trying to use file
to determine what type a file is. In stderr, I keep getting a usage message in stderr
"Usage...." which tells me I am doing something wrong with the arguments but not WHAT is wrong. This is my code below. For more context, from_file_path
is a temporary file used to store downloaded info. Other subprocess calls work on this file, so I know there is nothing wrong with the file itself.
subprocess.run(["file", from_file_path], check=True, shell=True)