Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
File access / locking.
#1
If I had one app creating files in a certain folder, and another app poling the folder for new files, reading the data and deleting the files after... what file checking/locking should I be doing in Python?

I've looked at the file objects, there doesn't appear to be an exclusive flag.

Many thanks.
Reply
#2
Do you want to prevent files to be deleted?
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Trying to access excel file on our sharepoint server but getting errors cubangt 0 809 Feb-16-2023, 08:11 PM
Last Post: cubangt
  data file for .exe program to access ose 2 1,177 Nov-23-2022, 08:02 PM
Last Post: snippsat
  Mult-threading and locking file mr_byte31 4 2,587 Oct-16-2021, 01:54 AM
Last Post: Larz60+
  Making .exe file that requires access to text and html files ClassicalSoul 0 1,579 Apr-23-2020, 05:03 PM
Last Post: ClassicalSoul
  FileNotFoundError: No such file or no access agatte 2 4,938 Sep-12-2019, 08:48 AM
Last Post: agatte
  python 2.7 access denied when writing a file to Windows kavise 2 11,313 Feb-13-2018, 08:30 PM
Last Post: kavise
  Is it possible to access and list all macro names in an excel file? kwfine 0 2,447 Feb-07-2018, 04:21 PM
Last Post: kwfine
  File access confusion python windows PickyBiker 0 3,360 May-08-2017, 05:36 PM
Last Post: PickyBiker

Forum Jump:

User Panel Messages

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