Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Question about FTP.pm rename operation

by steves (Curate)
on Oct 29, 2004 at 09:25 UTC ( #403650=note: print w/replies, xml ) Need Help??


in reply to Question about FTP.pm rename operation

Do you know what OS and/or FTP software the FTP server is running? This could be a server specific bug of some sort.

Regarding your "is it atomic" question: rename is implemented by two lower level FTP commands on all servers I'm aware of. first an RNFR is sent by the client to the server. If that succeeds, then an RNTO is sent.

You say the target file is there even when you get the error. How about the original? Is it still there? It may be that the way the server implements rename, it's able to create the new file but not remove the old one, although that seems pretty unlikely if you put the original one there. I have seen some flaky NFS mounted disks give a "no such file or directory" error when they hit other issues.

  • Comment on Re: Question about FTP.pm rename operation

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://403650]
help
Chatterbox?
[ozboomer]: Howdy, all.. Trying this once more... Not really a perl question :(... but I don't know how to even title my query (more...)
[ozboomer]: There's a text file with lots of sections in it, like an '.ini/.conf' file. Each section can be 'used' or 'unused' by its application (more...)
[ozboomer]: Some folk want to use the text file as 'storage', keeping ALL items in it (a database); others call it an 'active document' that should only contain 'in-use' sections. Is there a 'good practice' for this sort of thing?

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2018-05-21 00:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?