Sign in to follow this  
Followers 0
ohos

_FTP_FilePut doesn't detect "file being used by another person or program"

5 posts in this topic

Hi, function _FTP_FilePut doesn't detect file locks "file being used by another person or program" and return 1 as "all fine" result. Is here any solution? To simply test locks i used this console program http://www.jensscheffler.de/filelocker

Share this post


Link to post
Share on other sites



Maybe _FTP_FileOpen help me check write rights, i'll let it a try.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

_FTP_FileDelete helped but now i don't sure how check if sertain file exist, because _FTP_FileDelete return error even when file doesn't exist at all

seems _FTP_FileGetSize can help when file exist and not 0 size, but how check exist loked files with 0 size i don't know yet xD

Edited by ohos

Share this post


Link to post
Share on other sites

If you want to see if it is open, this should help you out. >link

Otherwise, to see if a file exists use

_FTP_FindFileFirst()
_FTP_FindFileNext()

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0