Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SpacedName ¶
Get the spaced version of a file path
func SpacedName2 ¶
Get the spaced version of a file path This version allows you to specify the format string that will differentiate collisions
Types ¶
type NameSpacer ¶
type NameSpacer struct { // Handles the spacing of path names by checking for existing matches Format string // Pattern that spaced names should follow. "_%v" is easier to parse but " (%v)" is common to major OSs. Index uint // Starting index of duplicates. For most uses it is best to set this equal to 2 }
Click to show internal directories.
Click to hide internal directories.