Skip to content

Commit 9a1e624

Browse files
authored
Changelog (#1289)
1 parent 51563ca commit 9a1e624

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

docs/source/changelog.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,32 @@
11
Changelog
22
=========
33

4+
2023.6.0
5+
--------
6+
7+
Enhancements
8+
9+
- #1259, add maxdepth fo cp/get/put
10+
- #1263, allow dir modification during walk()
11+
- #1264, add boxfs to registry
12+
- #1266, optimise referenceFS lazy lookups, especially for writing parquet
13+
- #1287, 1288 "encoding" for FTP
14+
15+
Fixes
16+
17+
- #1273, (re)allow reading .zstd reference sets
18+
- #1275, resource.error for win32
19+
- #1278, range reads in dbfs
20+
- #1282, create parent directories in get_file
21+
- #1283, off-by-one in reference block writing
22+
- #1286, strip protocol in local rm_file
23+
24+
Other
25+
26+
- #1267, async bulk tests
27+
- #1268, types and mypy
28+
- #1277, 1279, drop outdated forms io.open, IOError
29+
430
2023.5.0
531
--------
632

fsspec/core.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ def open(
436436
- For implementations in separate packages see
437437
https://filesystem-spec.readthedocs.io/en/latest/api.html#other-known-implementations
438438
"""
439-
return open_files(
439+
out = open_files(
440440
urlpath=[urlpath],
441441
mode=mode,
442442
compression=compression,
@@ -446,7 +446,10 @@ def open(
446446
newline=newline,
447447
expand=False,
448448
**kwargs,
449-
)[0]
449+
)
450+
if not out:
451+
raise FileNotFoundError(urlpath)
452+
return out[0]
450453

451454

452455
def open_local(url, mode="rb", **storage_options):

0 commit comments

Comments
 (0)