# Functions
CheckPath checks if the path is a directory or file as expected.
CountDepth counts the depth of a file path.
Create creates the file at the location; including the directory if it does not exist.
FileExists checks if a file exists at the specified location.
GetAllFileNamesInDirectory is a function that retrieves all file names in a given directory and their extensions.
GetFilesEndingIn is a function that retrieves all files in a given directory that have a specified extension.
Lines reads the file line by line and returns a slice of strings, where each string represents a line from the file.
MediaDownloader downloads a file from the given URL and saves it to the specified destination.
NewDirEntryIterator creates a new directory entry iterator.
NewErrFileNotOpen creates a new ErrFileNotOpen error.
NewErrPathNot creates a new ErrPathNot error.
NewFileWriter creates a new FileWriter with the given location.
NewItem creates a new item.
PerLine reads the file line by line and applies a function to each line.
ReadFile reads the content of a file from the provided path and returns the content as a string.
SplitPath splits a file path into its components, where each component is a part of the file path.
# Constants
DP_All is the permission where everyone can read, write, and execute.
DP_OwnerOnly is the permission where only the owner can read, write, and execute.
DP_OwnerRestrictOthers is the permission where the owner can read, write, and execute, and others can read and execute.
FP_All is the permission where everyone can read and write.
FP_OwnerOnly is the permission where only the owner can read and write.
FP_OwnerRestrictOthers is the permission where the owner can read and write, and others can read.
# Structs
DEWalkerIter is an iterator that reads directories and all of its subdirectories in a depth-first manner without using recursion.
ErrFileNotOpen is an error type for when a file was not opened.
ErrPathNot is an error type for when a path is not as expected.
FileWriter represents a file writer that can be used to write to files.
Item is a struct that represents a directory entry with its location.
ItemList is a struct that represents a list of items.