Hello, I often was surprise to get primitive failures while calling #ensureDelete. I saw that when a folder has children, we should not call #ensureDelete but #ensureDeleteAll, at least on Windows.
I think we should raise an other error than "Primitive Failure" when we are in that case. Something like "DirectoryHasChildren" that would signal "This directory contains files and cannot be deleted.". What do you think? -- Cyril Ferlicot https://ferlicot.fr http://www.synectique.eu 2 rue Jacques Prévert 01, 59650 Villeneuve d'ascq France
signature.asc
Description: OpenPGP digital signature
