def __init__(self, path, name):
    '\n        Initizlize.\n        :param path: path to the storage file;\n        empty means the current direcory.\n        :param name: file name, json file; may include a path.\n        '
    if path:
        os.makedirs(path, exist_ok=True)
    self.file = os.path.normpath(os.path.join(path, name))
    try:
        with open(self.file) as data_file:
            self.data = json.load(data_file)
    except FileNotFoundError:
        self.data = dict()
        self.dump()
Initizlize.
:param path: path to the storage file;
empty means the current direcory.
:param name: file name, json file; may include a path.
def __init__(self, path, name):
    '\n        Initizlize.\n        :param path: path to the storage file;\n        empty means the current direcory.\n        :param name: file name, json file; may include a path.\n        '
    if path:
        os.makedirs(path, exist_ok=True)
    self.file = os.path.normpath(os.path.join(path, name))
    try:
        with open(self.file) as data_file:
            self.data = json.load(data_file)
    except FileNotFoundError:
        self.data = dict()
        self.dump()