mirror of
https://github.com/Dadido3/Scanyonero.git
synced 2025-06-06 01:10:00 +00:00
- Rename to Scanyonero - Add FTP server that ingests TIFF, PNG, JPEG or PDF files - Add web interface to check and modify ingested files - Rework how ocrmypdf is invoked Basics are working, but the program is not in a usable state.
17 lines
251 B
Go
17 lines
251 B
Go
package ftpserver
|
|
|
|
import "path/filepath"
|
|
|
|
func normalizePath(path string) string {
|
|
path = filepath.Clean(path)
|
|
|
|
switch path {
|
|
case ".":
|
|
return string(filePathSeparator)
|
|
case "..":
|
|
return string(filePathSeparator)
|
|
default:
|
|
return path
|
|
}
|
|
}
|