Skip to content

Commit 9d0bfbf

Browse files
author
CI Build
committed
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
1 parent c1a3aa8 commit 9d0bfbf

12 files changed

+15
-12
lines changed

master/api.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ <h3>Navigation</h3>
127127
&#169; Copyright 2009 Google Inc. All Rights Reserved.
128128
© Copyright 2014 Altera Corporation. All Rights Reserved.
129129
© Copyright 2014-2021 John McGehee.
130-
Last updated on Mar 29, 2022.
130+
Last updated on May 11, 2022.
131131
</div>
132132
</body>
133133
</html>

master/autopatch.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ <h3>Navigation</h3>
222222
&#169; Copyright 2009 Google Inc. All Rights Reserved.
223223
© Copyright 2014 Altera Corporation. All Rights Reserved.
224224
© Copyright 2014-2021 John McGehee.
225-
Last updated on Mar 29, 2022.
225+
Last updated on May 11, 2022.
226226
</div>
227227
</body>
228228
</html>

master/doctrees/environment.pickle

0 Bytes
Binary file not shown.

master/doctrees/modules.doctree

963 Bytes
Binary file not shown.

master/genindex.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ <h3>Navigation</h3>
322322
&#169; Copyright 2009 Google Inc. All Rights Reserved.
323323
© Copyright 2014 Altera Corporation. All Rights Reserved.
324324
© Copyright 2014-2021 John McGehee.
325-
Last updated on Mar 29, 2022.
325+
Last updated on May 11, 2022.
326326
</div>
327327
</body>
328328
</html>

master/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ <h3>Navigation</h3>
139139
&#169; Copyright 2009 Google Inc. All Rights Reserved.
140140
© Copyright 2014 Altera Corporation. All Rights Reserved.
141141
© Copyright 2014-2021 John McGehee.
142-
Last updated on Mar 29, 2022.
142+
Last updated on May 11, 2022.
143143
</div>
144144
</body>
145145
</html>

master/intro.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ <h3>Navigation</h3>
211211
&#169; Copyright 2009 Google Inc. All Rights Reserved.
212212
© Copyright 2014 Altera Corporation. All Rights Reserved.
213213
© Copyright 2014-2021 John McGehee.
214-
Last updated on Mar 29, 2022.
214+
Last updated on May 11, 2022.
215215
</div>
216216
</body>
217217
</html>

master/modules.html

+6-3
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ <h2>Fake filesystem classes<a class="headerlink" href="#fake-filesystem-classes"
283283

284284
<dl class="method">
285285
<dt id="pyfakefs.fake_filesystem.FakeFilesystem.add_mount_point">
286-
<code class="descname">add_mount_point</code><span class="sig-paren">(</span><em>path: AnyStr</em>, <em>total_size: Optional[int] = None</em><span class="sig-paren">)</span> &#x2192; Dict[KT, VT]<a class="headerlink" href="#pyfakefs.fake_filesystem.FakeFilesystem.add_mount_point" title="Permalink to this definition"></a></dt>
286+
<code class="descname">add_mount_point</code><span class="sig-paren">(</span><em>path: AnyStr</em>, <em>total_size: Optional[int] = None</em>, <em>can_exist: bool = False</em><span class="sig-paren">)</span> &#x2192; Dict[KT, VT]<a class="headerlink" href="#pyfakefs.fake_filesystem.FakeFilesystem.add_mount_point" title="Permalink to this definition"></a></dt>
287287
<dd><p>Add a new mount point for a filesystem device.
288288
The mount point gets a new unique device number.</p>
289289
<table class="docutils field-list" frame="void" rules="none">
@@ -294,13 +294,16 @@ <h2>Fake filesystem classes<a class="headerlink" href="#fake-filesystem-classes"
294294
<li><strong>path</strong> – The root path for the new mount path.</li>
295295
<li><strong>total_size</strong> – The new total size of the added filesystem device
296296
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>
297299
</ul>
298300
</td>
299301
</tr>
300302
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">The newly created mount point dict.</p>
301303
</td>
302304
</tr>
303-
<tr class="field-odd field"><th class="field-name">Raises:</th><td class="field-body"><p class="first last"><code class="xref py py-exc docutils literal notranslate"><span class="pre">OSError</span></code> – if trying to mount an existing mount point again.</p>
305+
<tr class="field-odd field"><th class="field-name">Raises:</th><td class="field-body"><p class="first last"><code class="xref py py-exc docutils literal notranslate"><span class="pre">OSError</span></code> – if trying to mount an existing mount point again,
306+
and <cite>can_exist</cite> is False.</p>
304307
</td>
305308
</tr>
306309
</tbody>
@@ -1267,7 +1270,7 @@ <h3>Navigation</h3>
12671270
&#169; Copyright 2009 Google Inc. All Rights Reserved.
12681271
© Copyright 2014 Altera Corporation. All Rights Reserved.
12691272
© Copyright 2014-2021 John McGehee.
1270-
Last updated on Mar 29, 2022.
1273+
Last updated on May 11, 2022.
12711274
</div>
12721275
</body>
12731276
</html>

master/py-modindex.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ <h3>Navigation</h3>
105105
&#169; Copyright 2009 Google Inc. All Rights Reserved.
106106
© Copyright 2014 Altera Corporation. All Rights Reserved.
107107
© Copyright 2014-2021 John McGehee.
108-
Last updated on Mar 29, 2022.
108+
Last updated on May 11, 2022.
109109
</div>
110110
</body>
111111
</html>

master/search.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ <h3>Navigation</h3>
9393
&#169; Copyright 2009 Google Inc. All Rights Reserved.
9494
© Copyright 2014 Altera Corporation. All Rights Reserved.
9595
© Copyright 2014-2021 John McGehee.
96-
Last updated on Mar 29, 2022.
96+
Last updated on May 11, 2022.
9797
</div>
9898
</body>
9999
</html>

master/searchindex.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

master/usage.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,7 @@ <h3>Navigation</h3>
997997
&#169; Copyright 2009 Google Inc. All Rights Reserved.
998998
© Copyright 2014 Altera Corporation. All Rights Reserved.
999999
© Copyright 2014-2021 John McGehee.
1000-
Last updated on Mar 29, 2022.
1000+
Last updated on May 11, 2022.
10011001
</div>
10021002
</body>
10031003
</html>

0 commit comments

Comments
 (0)