diff --git a/README.md b/README.md index cb2f45b..c692715 100644 --- a/README.md +++ b/README.md @@ -1619,15 +1619,14 @@ os.mkdir(, mode=0o777) # Creates a directory. #### DirEntry: ```python - = .name # Final component of the path. - = .path # Path with final component. - = Path() # Path object. + = .is_file() + = .is_dir() ``` ```python - = .is_file() - = .is_dir() - = .is_symlink() + = .name # Final component of the path. + = .path # Path with final component. + = Path() # Path object. ``` ### Shell Commands diff --git a/index.html b/index.html index 34275e1..3a5488e 100644 --- a/index.html +++ b/index.html @@ -1459,14 +1459,13 @@ os.replace(from, to) # Same, but overwr
os.mkdir(<path>, mode=0o777)       # Creates a directory.
 <iter> = os.scandir(path='.')      # Returns os.DirEntry objects located at path.
 
-

DirEntry:

<str>  = <DirEntry>.name           # Final component of the path.
-<str>  = <DirEntry>.path           # Path with final component.
-<Path> = Path(<DirEntry>)          # Path object.
+

DirEntry:

<bool> = <DirEntry>.is_file()
+<bool> = <DirEntry>.is_dir()
 
-
<bool> = <DirEntry>.is_file()
-<bool> = <DirEntry>.is_dir()
-<bool> = <DirEntry>.is_symlink()
+
<str>  = <DirEntry>.name           # Final component of the path.
+<str>  = <DirEntry>.path           # Path with final component.
+<Path> = Path(<DirEntry>)          # Path object.
 

Shell Commands

import os
 <str> = os.popen('<shell_command>').read()