Documentation
¶
Overview ¶
Copyright 2026 Teradata
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Package fsext provides filesystem extensions.
Index ¶
- func Base(path string) string
- func Dir(path string) string
- func DirTrim(path string, maxLen int) string
- func Exists(path string) bool
- func Ext(path string) string
- func IsDir(path string) bool
- func ListDirectory(path string, exclude []string, depth, limit int) ([]string, bool, error)
- func PrettyPath(path string) string
- func ToUnixLineEndings(s string) (string, bool)
- type FileEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListDirectory ¶
ListDirectory lists files in a directory with optional filtering and limits. The exclude parameter can be a list of patterns to exclude. Returns file paths, truncated flag, and error.
func ToUnixLineEndings ¶
ToUnixLineEndings converts Windows line endings to Unix. Returns the converted string and true if successful.