@@ -94,12 +94,12 @@ class Path(PathDeprecations):
9494
9595 When a Path instance is created, it is checked that: the path exists,
9696 whether it is a file or directory and whether it has the required access
97- permissions (f=file, d=directory, r=readable, w=writeable , x=executable,
97+ permissions (f=file, d=directory, r=readable, w=writable , x=executable,
9898 c=creatable, u=url, s=fsspec or in uppercase meaning not, i.e., F=not-file,
99- D=not-directory, R=not-readable, W=not-writeable and X=not-executable).
99+ D=not-directory, R=not-readable, W=not-writable and X=not-executable).
100100
101101 The creatable flag "c" can be given one or two times. If given once, the
102- parent directory must exist and be writeable . If given twice, the parent
102+ parent directory must exist and be writable . If given twice, the parent
103103 directory does not have to exist, but should be allowed to create.
104104
105105 An instance of Path class can also refer to the standard input or output.
@@ -204,7 +204,7 @@ def __init__(
204204 if not os .path .isdir (pdir ):
205205 raise PathError (f"{ ptype } is not creatable since parent directory does not exist: { abs_path !r} " )
206206 if not os .access (pdir , os .W_OK ):
207- raise PathError (f"{ ptype } is not creatable since parent directory not writeable : { abs_path !r} " )
207+ raise PathError (f"{ ptype } is not creatable since parent directory not writable : { abs_path !r} " )
208208 if "d" in mode and os .access (abs_path , os .F_OK ) and not os .path .isdir (abs_path ):
209209 raise PathError (f"{ ptype } is not creatable since path already exists: { abs_path !r} " )
210210 if "f" in mode and os .access (abs_path , os .F_OK ) and not os .path .isfile (abs_path ):
@@ -220,7 +220,7 @@ def __init__(
220220 if "r" in mode and not os .access (abs_path , os .R_OK ):
221221 raise PathError (f"{ ptype } is not readable: { abs_path !r} " )
222222 if "w" in mode and not os .access (abs_path , os .W_OK ):
223- raise PathError (f"{ ptype } is not writeable : { abs_path !r} " )
223+ raise PathError (f"{ ptype } is not writable : { abs_path !r} " )
224224 if "x" in mode and not os .access (abs_path , os .X_OK ):
225225 raise PathError (f"{ ptype } is not executable: { abs_path !r} " )
226226 if "D" in mode and os .path .isdir (abs_path ):
@@ -230,7 +230,7 @@ def __init__(
230230 if "R" in mode and os .access (abs_path , os .R_OK ):
231231 raise PathError (f"{ ptype } is readable: { abs_path !r} " )
232232 if "W" in mode and os .access (abs_path , os .W_OK ):
233- raise PathError (f"{ ptype } is writeable : { abs_path !r} " )
233+ raise PathError (f"{ ptype } is writable : { abs_path !r} " )
234234 if "X" in mode and os .access (abs_path , os .X_OK ):
235235 raise PathError (f"{ ptype } is executable: { abs_path !r} " )
236236
0 commit comments