I am trying to find files older than certain number of days and remove them
subprocess.call(['find', DIRECTORY, '-mtime', '+5', '-exec', 'rm', '{}', r'\ '])
Why is this call giving me missing argument to -exec error message
I am trying to find files older than certain number of days and remove them
subprocess.call(['find', DIRECTORY, '-mtime', '+5', '-exec', 'rm', '{}', r'\ '])
Why is this call giving me missing argument to -exec error message