Skip to content
Discussion options

You must be logged in to vote

I was doing more testing and you're right about the stripped directory names.

I tested without the preceding slash (indicating root) and without the trailing (indicating folder), each one removed.

However, what I did not try was removing both slashes. In short, your original suspicion is correct: folders cannot contain leading OR trailing slashes; however, they can contain the slashes that divide folders.

Therefore, this is all valid:

foldername
folder1/folder2

Yet these are invalid (regardless of whether they evaluate to the correct path)

/foldername
foldername/
/folder1/folder2/

Thank you for your help.

Replies: 1 comment 13 replies

Comment options

You must be logged in to vote
13 replies
@rkmfl
Comment options

@lastzero
Comment options

@rkmfl
Comment options

@rkmfl
Comment options

Answer selected by lastzero
@lastzero
Comment options

@lastzero
Comment options

@rkmfl
Comment options

@lastzero
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants