我找到了这个问题的多个答案,但没有一个对我有效。/home/user/public_html/miner/builds/ $files = glob('/home/user/public_html/miner/builds/*'); // get all file names
chmod("/home/user/public_html/miner/buil
从这个开始,我假设在windows下使用非常慢(我需要每天删除3M多个文件,花费超过24个小时),所以我想使用和rmdir,但是由于我在%PATH%系统变量中使用了cygwin,所以调用了错误的rmdir,我会得到以下结果:>>> subprocess.call(args) MS-DOS style pathfor more details about POSIX