• Re: How I can know if the file was finished copying?

    From laurent.daudelin@laurent.daudelin@ihatespam.verizon.net (Laurent Daudelin) to comp.sys.mac.system on Friday, July 04, 2003 11:00:12
    From Newsgroup: comp.sys.mac.system

    In message <60CMa.1064$Fy1.62876@localhost>, "Stephane Dion" <stephane.dion@dynagram.com> wrote:

    Hi,



    I have a Carbon application that looks into a folder for a file (hot
    folder). When a file is being copied in the hot folder, my application
    starts to read the file even if it's not finished being copied. I use FSpOpenDF(., fsWrPerm, .) and it returns without error. This is my problem. I need to know if the file is already open, so I can wait until the file
    is
    completely written and closed.



    So how I can know if the file was finished copying?

    (runs on OS X 10.2)






    You would have increased your chance to get an answer if you had posted in comp.sys.mac.programer.help...

    -Laurent.
    --
    =================================================================
    Laurent Daudelin Logiciels Nemesys Software mailto:laurent.daudelin@ihatespam.net <http://nemesys.dyndns.org>
    Replace ihatespam with verizon to reply
    +++++++++++ Sent using an Apple Newton MessagePad 2100 ++++++++++

    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From macuser@macuser@nomail.com.invalid to comp.sys.mac.programmer.codewarrior,comp.sys.mac.programmer.help,comp.sys.mac.system on Friday, July 04, 2003 14:09:52
    From Newsgroup: comp.sys.mac.system

    In article <60CMa.1064$Fy1.62876@localhost>,
    "Stephane Dion" <stephane.dion@dynagram.com> wrote:

    FSpOpenDF(., fsWrPerm, .) and it returns without error. This is my problem. I need to know if the file is already open, so I can wait until the file is completely written and closed.

    Files that are being transferred or copied have their file type
    beginning with "bzy", so check for that.

    .lauri
    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From macuser@macuser@nomail.com.invalid to comp.sys.mac.programmer.codewarrior,comp.sys.mac.programmer.help,comp.sys.mac.system on Friday, July 04, 2003 14:05:08
    From Newsgroup: comp.sys.mac.system

    In article <60CMa.1064$Fy1.62876@localhost>,
    "Stephane Dion" <stephane.dion@dynagram.com> wrote:

    FSpOpenDF(., fsWrPerm, .) and it returns without error. This is my problem. I need to know if the file is already open, so I can wait until the file is completely written and closed.

    Open files have their file type beginning with "bzy", so check for that.

    .lauri
    --- Synchronet 3.18b-Win32 NewsLink 1.113