function in jsngram.dir2 module

Description

Makes parent directories of path recursively, when they do not exist.

Example
def myfunc(path, dest):
    return path
jsngram.dir2.ensure_dir('/scratch/hoge/a.txt')
# creates /scratch/hoge if not exist. 
      
Usage

jsngram.dir2.ensure_dir(path)

Argument path is a file path that you want to put in a directory you want to create. Not a directory itself.