Skip to content

Commit eccf761

Browse files
committed
Fix spelling errors in README.new_fusepy_api
1 parent 49c05da commit eccf761

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

README.new_fusepy_api

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Let's see how these are implemented.
9595
.. [#] See ``examples/xmp.py`` for the argument list of the fs methods.
9696

9797
Regarding return values: in each method, you can signal success or
98-
error by returning ``0`` (*succes*), a negative number (*error*,
98+
error by returning ``0`` (*success*), a negative number (*error*,
9999
interpreted as negated errno), not returning anything (*success*) or
100100
by raising (not catching) an exception (*error*, Python infers an
101101
errno from the nature of the exception).
@@ -197,7 +197,7 @@ Simple objects to represent system structures
197197

198198
In old Pythons, ``os.stat()`` returned file attributes as a tuple, and
199199
for the convenient access of the stat values, you got a bunch of
200-
constats with it (so you queried file size like
200+
constants with it (so you queried file size like
201201
``os.stat("foofile")[stat.ST_SIZE]``). While this approach still works,
202202
and if you print a stat result, it looks like a tuple, *it is, in fact,
203203
not a tuple*. It's an object which is immutable and provides the
@@ -219,8 +219,8 @@ Similarly, when listing directories, you have to return a sequence of
219219
``fuse.Direntry`` objects which can be constructed from filenames
220220
(``fuse.Direntry("foofile")``).
221221

222-
Does the above senctence make sense? I hope so. Anyway, *it's not true
223-
as is*. (Truth has been sacrified for making it short.) Don't worry, we
222+
Does the above sentence make sense? I hope so. Anyway, *it's not true
223+
as is*. (Truth has been sacrificed for making it short.) Don't worry, we
224224
uncover the lies immediately:
225225

226226
- *You don't necessarily have to return a sequence*. You just have to
@@ -247,7 +247,7 @@ so called *filehandle*. [#]_ FUSE internally will allocate a (FUSE)
247247
filehandle upon open, and keep a record of your (Python) filehandle.
248248
When the system will want to use the FUSE filehandle for I/O, the
249249
respective Python method will get the (py-)filehandle as an argument.
250-
Ie., you can use the filehandle to preserve a state.
250+
I.e., you can use the filehandle to preserve a state.
251251

252252
You might as well want the filehandle to be an instance of a dedicated
253253
class, and want the filesystem methods get delegated to the filehandle.
@@ -287,7 +287,7 @@ Complete support for hi-lib
287287
The Python bindings support all highlevel (pathname based) methods of
288288
the Fuse library as of API revision 26, including `create`, `access`,
289289
`flush`, extended attributes, advisory file locking, nanosec precise
290-
setting of acces/modify times, and `bmap`.
290+
setting of access/modify times, and `bmap`.
291291

292292

293293
Reflection
@@ -327,6 +327,6 @@ Long-term compatibility
327327
Your filesystem is expected to set ``fuse.fuse_python_api`` in order to
328328
make it easy for the fuse module to find out the which FUSE-Python API revision
329329
is appropriate for your code. Concretely, set ``fuse.fuse_python_api``
330-
to the value of ``fuse.FUSE_PYTHON_API_VERSION`` as it's definied in the fuse.pyi
330+
to the value of ``fuse.FUSE_PYTHON_API_VERSION`` as it's defined in the fuse.pyi
331331
instance you code your filesystem against. This ensures that your code will
332332
keep working even if further API revisions take place.

0 commit comments

Comments
 (0)