Skip to content

kendfss/fopa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fopa

Forbidden Paths Sanitize a file's path so that it has consistent across common operating systems and the web.

package main

import "github.com/kendfss/fopa"

func main() {
    path := "%# "
    println(fopa.Sanitize(path)) // ___
    println(fopa.Sanitizef(path, "*")) // ***, but this is also forbidden
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published