mirror of
https://github.com/zyedidia/micro.git
synced 2025-06-18 14:55:38 -04:00
util: Provide AppendBackupSuffix()
for further transformations
This commit is contained in:
parent
1663a1a6e4
commit
21b7080935
@ -412,6 +412,10 @@ func GetModTime(path string) (time.Time, error) {
|
||||
return info.ModTime(), nil
|
||||
}
|
||||
|
||||
func AppendBackupSuffix(path string) string {
|
||||
return path + ".micro-backup"
|
||||
}
|
||||
|
||||
// EscapePathUrl encodes the path in URL query form
|
||||
func EscapePathUrl(path string) string {
|
||||
return url.QueryEscape(filepath.ToSlash(path))
|
||||
|
Loading…
Reference in New Issue
Block a user