fix: auth precedence by sigoden · Pull Request #325 · sigoden/dufs (original) (raw)

The more specific a path is, the higher its priority.

Let me take user:pass@/dir1:rw,/dir1/test.txt as an example:
/dir1/test.txt will be readonly, as /dir1/test.txt is more specific than /dir1:rw.