specs icon indicating copy to clipboard operation
specs copied to clipboard

Path is underspecified

Open nichtich opened this issue 1 year ago • 1 comments

What Data Package version are you using?

v2

Describe the Issue

The definition of URL or path is not sufficient as "POSIX path" is not formally specified - the link to Wikipedia leads to examples such as hostname:/directorypath/resource but I doubt this is wanted. Furthermore the description of forbidden pathes could be made more clear:

  • is only / disallowed or every path beginning with /?
  • is only .hidden disallowed or also other names starting with a dot and/or what about path/to/.hidden/file?

Do avoid having to read the full POSIX specification, how about a formal definition of path such as

  • any non-empty sequence of bytes except slash and null byte and not starting with a dot is a valid filename
  • a path is a non-empty sequence of filenames, separated with slash

Participation

  • [X] I am willing to submit a pull request for this issue.

nichtich avatar Dec 13 '24 07:12 nichtich

@nichtich I agree

roll avatar Dec 23 '24 09:12 roll