Where does os.remove go?

后端 未结 2 404
攒了一身酷
攒了一身酷 2021-01-12 06:37

I\'ve been using python for a long time and have numerous scripts running all over my office. I use a few in particular scripts to back up then delete data. In these script

相关标签:
2条回答
  • 2021-01-12 07:10

    I'm not sure what you mean by os.delete (not listed on http://docs.python.org/library/os.html), but os.remove and os.unlink, will just call the operating systems unlink functionality, and delete the file from the disk.

    Technically the OS / filesystem probably just marks the sectors as free, and removes the file entry from the directory, but that's up to the filesystem implementation.

    0 讨论(0)
  • it just deletes them from the harddrive

    0 讨论(0)
提交回复
热议问题