Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Get list of open files.
Get list of open files. [message #15572] |
Tue, 29 April 2008 14:00 |
captainc
Messages: 278 Registered: December 2006 Location: New Jersey, USA
|
Experienced Member |
|
|
I have a process that reads files in a directory. Is there a way to find out if another process has a file open? I don't want to read from the files that are in the directory unless they are done being written to. I have encountered a few situations where the file was not fully copied into the folder, and the process would begin reading from the file because it appeared in the directory already.
I figure that there has to be a way of getting the list of open file descriptors from the OS; maybe this should be a part of Upp library since it may require implementation on a per operating system basis?
|
|
|
|
Goto Forum:
Current Time: Sun Jun 16 00:40:57 CEST 2024
Total time taken to generate the page: 0.02050 seconds
|