'Create a file cache object.
This will create the cache directory if it does not exist yet.'

def __init__(self, root):

    self.root = root.rstrip(os.path.sep)
    if (not os.path.exists(self.root)):
        mkdirp(self.root)
    self._locks = {}
