New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
semantics of Sys.rename #2352
Comments
Comment author: administrator
Merci pour le rapport de bug. Comme Sys.rename se contente de refleter la -- Damien |
Comment author: administrator In case of an error, there is no way to tell whether it is caused by the old |
Comment author: administrator
C'est dommage de ne pas reussir a faire que Sys soit une librairie Pourquoi pas un truc du genre #ifdef _WIN32 bien sur, c'est juste une suggestion, et je ne sais pas si ca marche
-- |
Comment author: administrator On Apr 13, 2004, at 18:08, Claude.Marche@lri.fr wrote:
Malheureusement, ca ne marche pas. Par exemple dans le cas ou un L'appel systeme Unix a une garantie d'atomicite qu'il est impossible -- Damien |
Original bug ID: 2352
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name:
Version: 3.07
OS: mingw
Submission from: serveur-demons.lri.fr (129.175.8.130)
Sys.rename does not have the same semantics under unix and under win32(mingw)
Under Unix, (Sys.rename old new) succeeds even if new exists, but fails under
Mingw.
Moreover, in the latter case the error message is incorrect (Sys.Error "old:
file exists" instead of "new:file exists")
The text was updated successfully, but these errors were encountered: