Add is_sock(), is_fifo(), is_block_device(), is_char_device()

This commit is contained in:
Antoine Pitrou 2013-11-18 21:49:41 +01:00
parent 36f5f1f633
commit cf1a377f65
1 changed files with 8 additions and 0 deletions

View File

@ -584,6 +584,14 @@ Higher-level methods help examine the kind of the file::
False
>>> p.is_symlink()
False
>>> p.is_sock()
False
>>> p.is_fifo()
False
>>> p.is_block_device()
False
>>> p.is_char_device()
False
The file owner and group names (rather than numeric ids) are queried
through matching properties::