SysTutorials Forums QA How to test whether a file exists and is a block special file in Python on Linux?

Viewing 0 reply threads

    Bash has a -b test to test whether a file exists and is a block special file.

    -b file
          True if file exists and is a block special file.
    

    How to do this in Python?

Viewing 0 reply threads

The forum ‘QA’ is closed to new topics and replies.

Please share if you like this post: