#2808: createDirectoryIfMissing should be atomic
---------------------------------+------------------------------------------
 Reporter:  EricKow              |          Owner:                  
     Type:  bug                  |         Status:  new             
 Priority:  normal               |      Milestone:                  
Component:  libraries/directory  |        Version:  6.10.1          
 Severity:  normal               |     Resolution:                  
 Keywords:                       |       Testcase:                  
       Os:  Unknown/Multiple     |   Architecture:  Unknown/Multiple
---------------------------------+------------------------------------------
Comment (by EricKow):

 Replying to [comment:1 duncan]:
 > It could be atomic but the error code / exception could not necessarily
 be accurate. It could check afterwards if the path that already existed
 was a file or directory, but of course that will not be atomic.

 Hmm, ok, maybe I don't want atomicity but the illusion of it :-)
 Actually, I'm not sure if this is the right thing for me to want, but I
 might like some sort of check afterwards (so createDirectoryIfMissing
 should catch its createDirectory exception, and if the path really is a
 directory, ignore the exception)... basically whatever it takes to let me
 continue using this function in my blissful ignorance.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2808#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to