I have a lot of files in /home/somedir/subdir/ and I'm trying to move them all up to /home/somedir programmatically.
right now I have this:
subprocess.call(["mv", "/home/somedir/subdir/*", "somedir/"])
but it's giving me this error:
mv: cannot stat `/home/somedir/subdir/*': No such file or directory
I know that it does exist because when I type the mv command by hand using the exact same command as the script uses it works perfectly.