Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^5: Rename unreliable on Windows

by Corion (Pope)
on Apr 04, 2012 at 11:53 UTC ( #963429=note: print w/replies, xml ) Need Help??


in reply to Re^4: Rename unreliable on Windows
in thread Rename unreliable on Windows

This is how Windows as an operating system works. A file cannot be renamed while it is held open.

A good backup software would request the backup privilege, and use the Windows Backup API. But even then, I'm not sure whether that would allow renaming a file while it is held open.

Replies are listed 'Best First'.
Re^6: Rename unreliable on Windows (SHARE_DELETE)
by tye (Sage) on Apr 04, 2012 at 16:29 UTC

    elef should file a bug report / complaint against this backup software. It doesn't even have to use the Backup API. It can simply specify full sharing when opening the file. Simply add in the FILE_SHARE_DELETE bit (which also allows renaming) when opening the file (though, the Backup API likely provides other benefits).

    - tye        

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://963429]
help
Chatterbox?
choroba was busy with the Pull Request Challenge
marto must set time aside for cpan things, life is just too crazy at the moment

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2017-01-23 09:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (192 votes). Check out past polls.