pathProblemfunctionno test imports itfunction pathProblem(path: string): string | undefinedThe reason a path is not one OneDrive keeps, or nothing where it is.
The names OneDrive keeps, and the path of an item: a segment may not hold a character of " * : < > ? / \ |, may not begin with a space nor end with a space or a dot, and may not be a name of a device (CON, PRN, AUX, NUL, COM0 to COM9, LPT0 to LPT9, with or without an extension), .lock, desktop.ini, _vti_, or begin with ~$. A path of the store is mapped to the address Graph takes for an item below a drive (/me/drive/root:/a/b), each segment written as a URL part.
import { segmentProblem } from "./names.ts";
segmentProblem("report.txt"); // undefined
segmentProblem("a:b"); // "a character of \" * : < > ? / \\ | is not in a name of OneDrive"pathProblemfunctionno test imports itfunction pathProblem(path: string): string | undefinedThe reason a path is not one OneDrive keeps, or nothing where it is.
segmentProblemfunctionfunction segmentProblem(segment: string): string | undefinedWhy a segment is not a name of OneDrive, or nothing where it is one.