Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to next message
captainc is currently offline  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?
Re: Get list of open files. [message #15577 is a reply to message #15572] Tue, 29 April 2008 15:54 Go to previous message
zsolt is currently offline  zsolt
Messages: 696
Registered: December 2005
Location: Budapest, Hungary
Contributor
On unixes, you can check source code of lsof (LiSt Open Files) command.
Previous Topic: Bass audio library issue?
Next Topic: Using StartProcess with ping
Goto Forum:
  


Current Time: Sat Apr 20 12:36:13 CEST 2024

Total time taken to generate the page: 0.02237 seconds