File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -240,26 +240,29 @@ the :mod:`glob` module.)
240
240
241
241
.. function :: isfile(path)
242
242
243
- Return ``True `` if *path * is an existing regular file. This follows symbolic
244
- links, so both :func: `islink ` and :func: `isfile ` can be true for the same path.
243
+ Return ``True `` if *path * is an :func: `existing <exists> ` regular file.
244
+ This follows symbolic links, so both :func: `islink ` and :func: `isfile ` can
245
+ be true for the same path.
245
246
246
247
.. versionchanged :: 3.6
247
248
Accepts a :term: `path-like object `.
248
249
249
250
250
251
.. function :: isdir(path)
251
252
252
- Return ``True `` if *path * is an existing directory. This follows symbolic
253
- links, so both :func: `islink ` and :func: `isdir ` can be true for the same path.
253
+ Return ``True `` if *path * is an :func: `existing <exists> ` directory. This
254
+ follows symbolic links, so both :func: `islink ` and :func: `isdir ` can be true
255
+ for the same path.
254
256
255
257
.. versionchanged :: 3.6
256
258
Accepts a :term: `path-like object `.
257
259
258
260
259
261
.. function :: islink(path)
260
262
261
- Return ``True `` if *path * refers to a directory entry that is a symbolic link.
262
- Always ``False `` if symbolic links are not supported by the Python runtime.
263
+ Return ``True `` if *path * refers to an :func: `existing <exists> ` directory
264
+ entry that is a symbolic link. Always ``False `` if symbolic links are not
265
+ supported by the Python runtime.
263
266
264
267
.. versionchanged :: 3.6
265
268
Accepts a :term: `path-like object `.
You can’t perform that action at this time.
0 commit comments