# Functions
CopyExeToCache copies over the nonmem executable to the cache from the run directory.
DirExists checks if a path exists and is a directory.
Exists checks if a file or directory exists.
ExpandNameSequence takes a full name pattern with a sequence and returns all values run[001:004].mod --> run001.mod run002.mod run003.mod run004.mod.
ExpandSequence expands an integer sequence separated by a colon it also understands and will respect padding 1:3 --> 1, 2, 3 008:011 --> 008, 009, 010, 011.
ExtractRootPaths extracts the root paths from the supplied list of paths.
FileAndExt returns the filename and any extension of a file path as two separate strings.
FileContains checks if a file contains a specified string.
FileContainsAny checks if a file contains any of the specified strings.
Filename takes a path, strips out the extension, and returns the name of the file.
GetRealPath returns the real file path for the given path, whether it is a symlink or not.
GetRelativePath returns the relative path of a given path.
GetTempDir returns a temporary directory with the given sub path.
IsDir checks if a given path is a directory.
IsEmpty checks if a given path is empty.
LeftPad pads a given string a number of times.
ListDirNames returns an array of directory names from an array of fileinfo AppFs := afero.NewOsFs() dir := filepath.Dir(".") dirInfo, _ := afero.ReadDir(AppFs, dir) ListDirNames(dirInfo).
ListFiles returns an array of directory names from an array of fileinfo AppFs := afero.NewOsFs() dir := filepath.Dir(".") dirInfo, _ := afero.ReadDir(AppFs, dir) ListDirNames(dirInfo).
ListFilesByExt returns an array of model files given an array of files of any type.
ListMatchesByGlob returns all matches by a glob as glob.MustCompile panics if the glob does not compile, the function is designed to recover and return an error immediately.
ListMatchesByRegex returns all matches by a regex as regexp.MustCompile panics if the regex does not compile, the function is designed to recover and return an error immediately.
ListModels returns all model files for a given modExt in a provided dir.
ListNonMatchesByGlob returns all matches by a glob as glob.MustCompile panics if the glob does not compile, the function is designed to recover and return an error immediately.
ListNonMatchesByRegex returns all matches by a regex as regexp.MustCompile panics if the regex does not compile, the function is designed to recover and return an error immediately.
PadNum is a 'specialized' version of LeftPad to pad run numbers.
ReadLines reads lines for a file at a given path.
ReadLinesFS reads lines for a file at a given path.
ReplaceExtension takes a path and an extension, strips the old extension and returns the path with the new extension.
SafeWriteToDisk is the same as WriteToDisk but it also checks to see if file/directory already exists.
SetupCacheForRun copies over the cached nonmem executable from the cache to the run directory.
WriteLines writes lines to a file at a given path given a filesystem.
WriteLinesFS writes lines to a file at a given path given a filesystem.
WriteToDisk writes content to disk.
# Constants
FilePathSeparator as defined by os.Separator.