Commit 07b32a8
Return 409 PathAlreadyExists when creating an existing directory via DFS
Azure ADLS Gen2 returns 409 when creating a directory that already exists.
The SDK's CreateIfNotExistsAsync relies on this to return null/false for
existing directories. Azurite was returning 201 regardless, causing
CreateDirectory_AlreadyExists_ReturnsFalse to fail.
Now checks if a directory blob with hdi_isfolder=true already exists
before creating, and returns 409 PathAlreadyExists if so. File creates
remain idempotent (overwrite) matching Azure behavior.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent fb2c8dc commit 07b32a8
1 file changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
56 | 67 | | |
57 | 68 | | |
58 | 69 | | |
| |||
0 commit comments