8000 GitHub - Simbiat/filename-sanitizer: Sanitizes filenames to replace some restricted characters
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Simbiat/filename-sanitizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Filename sanitizer

Small class to replace restricted characters or combinations in filenames. Based on rules for Windows https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file but will be useful for *NIX systems as well.

This will also replace some characters that may be harmful depending on where and how the files are used. If you want to disable that behaviour, call the sanitize function with second argument as false.

If you want to remove the characters/combinations instead of replacing, send true as third argument.

About

Sanitizes filenames to replace some restricted characters

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0