mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-10 06:40:24 +09:00
util: Provide AppendBackupSuffix() for further transformations
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user