Python Forum
How to check if a file has finished being written
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to check if a file has finished being written
#3
There is also built-in fcntl — The fcntl and ioctl system calls which contains fcntl.lockf(fd, cmd, len=0, start=0, whence=0). It should be possible to lock file until writing has finished.
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply


Messages In This Thread
RE: How to check if a file has finished being written - by perfringo - Apr-14-2021, 04:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  please check this i wanna use a csv file as a graph xCj11 5 1,528 Aug-25-2022, 08:19 PM
Last Post: deanhystad
  Process finished with exit code 137 (interrupted by signal 9: SIGKILL) erdemath 2 9,622 Apr-18-2022, 08:40 PM
Last Post: erdemath
  check if a file exist on the internet and get the size kucingkembar 6 1,835 Apr-16-2022, 05:09 PM
Last Post: kucingkembar
  Code to check folder and sub folders for new file and alert fioranosnake 2 1,970 Jan-06-2022, 05:03 PM
Last Post: deanhystad
  Using .hdf5 files only once they are finished writing pyhill00 7 2,840 Nov-25-2021, 06:01 PM
Last Post: pyhill00
  Check last time file was accessed Pavel_47 4 2,874 Jun-01-2021, 05:47 PM
Last Post: Yoriz
  Check if a file exists. Pedroski55 5 3,347 Sep-08-2020, 10:01 AM
Last Post: Pedroski55
  process finished with exit code -1073741819 (0xC0000005) GMCobraz 8 5,502 Sep-01-2020, 08:19 AM
Last Post: GMCobraz
  How to check to see a dbf file is EOF ? DarkCoder2020 0 1,745 Jun-16-2020, 05:03 PM
Last Post: DarkCoder2020
  Building a script to check size of file upon creation mightyn00b 2 2,406 Apr-04-2020, 04:39 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020