Make readonly and filetype local-only

This commit is contained in:
Zachary Yedidia
2020-01-20 22:03:32 -05:00
parent b3e40a2644
commit 0abe427026
3 changed files with 56 additions and 38 deletions

View File

@@ -275,7 +275,6 @@ func MakeRelative(path, base string) (string, error) {
return path, nil
}
// TODO: consider changing because of snap segfault
// ReplaceHome takes a path as input and replaces ~ at the start of the path with the user's
// home directory. Does nothing if the path does not start with '~'.
func ReplaceHome(path string) (string, error) {