docx-validate
    Preparing search index...

    Function relationshipTargetFolder

    • The folder one relationship target names, resolved against baseDir as relationshipTargetPartName resolves it, its .. segments stopped at the package root: the package-relative folder with its final / (word/styles.xml/ for styles.xml/., styles.xml/x/.. or styles.xml/, word/ for .), or / for the package root; undefined when the target names a part, or nothing at all (a URI scheme, an empty reference). Word refused every such target it was shown, beside the stored part its path spells, whatever the relationship type and whether anything used it (sessions 70 to 73; #962, #975).

      Parameters

      • baseDir: string
      • target: string

      Returns string | undefined