Commit 5f8e155
authored
[BUGFIX]
Using the library in Linux environments, I have the following errors
when using cached files:
```bash
Error: EEXIST: file already exists, symlink '/home/node/.cache/huggingface/hub/datasets--facebook--natural_reasoning/blobs/704a73a635633c697507c74576e30798d42a3455967ef4d5bd0865b5242ee7fe' -> '/home/node/.cache/huggingface/hub/datasets--facebook--natural_reasoning/snapshots/bf8da7626caecdea87df7b5a8d97bf9650d909a3/full.jsonl'
```
This happens when trying to recreate the symbolic link. This PR checks
if the symlink already exists and returns the pointer file.EEXIST: file already exists, symlink when file already downloaded (#1253)1 parent 2286e04 commit 5f8e155
File tree
2 files changed
+44
-1
lines changed- packages/hub/src/lib
2 files changed
+44
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
117 | 158 | | |
118 | 159 | | |
119 | 160 | | |
| |||
150 | 191 | | |
151 | 192 | | |
152 | 193 | | |
153 | | - | |
154 | 194 | | |
155 | 195 | | |
156 | 196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
99 | 102 | | |
100 | 103 | | |
101 | 104 | | |
| |||
0 commit comments