mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-10 15:20:56 +00:00
lib/fs: Comment typo
Skip-check: authors GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4354
This commit is contained in:
parent
f7d2c58783
commit
a9aa375109
@ -71,7 +71,7 @@ func newBasicFilesystem(root string) *BasicFilesystem {
|
|||||||
|
|
||||||
// rooted expands the relative path to the full path that is then used with os
|
// rooted expands the relative path to the full path that is then used with os
|
||||||
// package. If the relative path somehow causes the final path to escape the root
|
// package. If the relative path somehow causes the final path to escape the root
|
||||||
// directoy, this returns an error, to prevent accessing files that are not in the
|
// directory, this returns an error, to prevent accessing files that are not in the
|
||||||
// shared directory.
|
// shared directory.
|
||||||
func (f *BasicFilesystem) rooted(rel string) (string, error) {
|
func (f *BasicFilesystem) rooted(rel string) (string, error) {
|
||||||
// The root must not be empty.
|
// The root must not be empty.
|
||||||
|
Loading…
Reference in New Issue
Block a user