Documentation ¶
Overview ¶
Package fs provides functions for filesystem operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // MarkdownOnly is a filter that only lets pass Markdown files. MarkdownOnly = func(file string) bool { return filepath.Ext(file) == ".md" } // NoUnderscores is a predefined filter that doesn't let pass // files starting with an underscore. NoUnderscores = func(file string) bool { filename := filepath.Base(file) return !strings.HasPrefix(filename, "_") } // ErrStreaming is returned from StreamFiles. ErrStreaming error = nil )
Functions ¶
func CopyFromOS ¶ added in v0.4.1
CopyFromOS copies a given directory from the OS filesystem into another filesystem instance to the desired destination.
If fileOnly is set to true, files will be copied directly into the destination directory without their directory structure inside src.
func IsSafeToRemove ¶ added in v0.4.4
IsSafeToRemove determines if a directory can be removed safely.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.