SafeInputPath validates an upload/read source path. Delegates to localfileio.SafeInputPath.
(path string)
| 14 | // SafeInputPath validates an upload/read source path. |
| 15 | // Delegates to localfileio.SafeInputPath. |
| 16 | func SafeInputPath(path string) (string, error) { |
| 17 | return localfileio.SafeInputPath(path) |
| 18 | } |
| 19 | |
| 20 | // SafeEnvDirPath validates an environment-provided application directory path. |
| 21 | // Delegates to localfileio.SafeEnvDirPath. |