Results 1 to 2 of 2
Hello, a file is uploaded through a FTP server.
Is there anyway I can find out whether entire file has been uploaded?
For example, I can open that file for ...
- 11-02-2008 #1Just Joined!
- Join Date
- Jan 2008
- Posts
- 19
Check whether a file is in use
Hello, a file is uploaded through a FTP server.
Is there anyway I can find out whether entire file has been uploaded?
For example, I can open that file for reading, if it returns error, it means the file upload hasnt been started yet.
However, if the upload has started, how can I find out that the file has been uploaded? For example, by checking whether any process uses that file?
There is no way I could know the filesize in advance.
I consider that once the upload starts, it will be successfully finished. The connection is reliable but slow.
I use C/C++.
cheers, meereck
- 11-03-2008 #2Linux Newbie
- Join Date
- Jul 2008
- Posts
- 181
Yes, that is possible. Look at the code of "fuser" or "lsof".


Reply With Quote