You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change handling of root dir under Windows - as Windows has no root dir as such, we use the current drive as root dir to better emulate the fs - as in the real fs, if a path starts with a path separator, it points to the current drive (e.g. the root of cwd) - fixes#673
<li><strong>path</strong> – The root path for the new mount path.</li>
295
295
<li><strong>total_size</strong> – The new total size of the added filesystem device
296
296
in bytes. Defaults to infinite size.</li>
297
+
<li><strong>can_exist</strong> – If True, no error is raised if the mount point
298
+
already exists</li>
297
299
</ul>
298
300
</td>
299
301
</tr>
300
302
<trclass="field-even field"><thclass="field-name">Returns:</th><tdclass="field-body"><pclass="first">The newly created mount point dict.</p>
301
303
</td>
302
304
</tr>
303
-
<trclass="field-odd field"><thclass="field-name">Raises:</th><tdclass="field-body"><pclass="first last"><codeclass="xref py py-exc docutils literal notranslate"><spanclass="pre">OSError</span></code> – if trying to mount an existing mount point again.</p>
305
+
<trclass="field-odd field"><thclass="field-name">Raises:</th><tdclass="field-body"><pclass="first last"><codeclass="xref py py-exc docutils literal notranslate"><spanclass="pre">OSError</span></code> – if trying to mount an existing mount point again,
306
+
and <cite>can_exist</cite> is False.</p>
304
307
</td>
305
308
</tr>
306
309
</tbody>
@@ -1267,7 +1270,7 @@ <h3>Navigation</h3>
1267
1270
© Copyright 2009 Google Inc. All Rights Reserved.
0 commit comments