Is there a python equivalent of ruby's "Pathname" module?
Question: Ruby has this really handy module called [Pathname](http://ruby-
doc.org/core/classes/Pathname.html).

Is there a python equivalent to it?


Answer: `pathlib` is the answer to all your python path woos.

Example functionality:

    
    
    from pathlib import Path
    p = Path.cwd()
    
    with (p/'somefile.txt').open() as f:
        f.read()
    
    p.is_dir()
    

