Does here need the check for path existence and mkdirs if necessary?