path = './file.txt'
os.remove(path)
import os
os.remove(path)
is equal to os.unlink(path)
, so how can I delete the file if it just becomes unlinked?
Also I haven't tried to yet, but does './file.txt'
work as is or do I must provide the full path?
Or do I just need to use the 'file.txt'
if it the same folder? Or they both work the same like os.remove(path)
and os.unlink(path)
?
And if './file.txt'
works then what about '../file.txt'
?