Library
List of all types and methods in the library
ObjectivePaths.FileObjectivePaths.FolderBase.:-Base.:/Base.parentBase.splitObjectivePaths._treeObjectivePaths.baseObjectivePaths.existsObjectivePaths.extensionObjectivePaths.filesObjectivePaths.get_file_formatObjectivePaths.highlight_pathObjectivePaths.infoObjectivePaths.nameObjectivePaths.nfilesObjectivePaths.pathObjectivePaths.repr_infoObjectivePaths.subdirsObjectivePaths.tree
ObjectivePaths.File — TypeFileStores the path to a (possibly not-existing) file
ObjectivePaths.Folder — TypeFolderStores the path to a (possibly not-existing) folder
Base.:- — Method-(path::AbstractPath, val::Int)Move val levels up in the paths hierarchy.
Base.:/ — Method/(p1::AbstractPath, p2::AbstractPath)Concatenate paths.
Base.parent — Methodparent(path::AbstractPath)Get the folder one level up in the hierarchy of a path.
Base.split — Methodsplit(path::AbstractPath)::Tuple{AbstractPath,String}Split a path into its base and its name.
ObjectivePaths._tree — Method_tree(dir::String)::OrderedDictConstruct a dictionary storing files/subsfolders hierarchy form a directory.
Calls itself recursively to handle subfolders.
ObjectivePaths.base — Methodbase(p::AbstractPath)Get the base (dirname) of a path.
Similar to dirname(p) but returns a Folder object instead of a String.
ObjectivePaths.exists — Methodexists(path::AbstractPath)Check if an object exists at the target path
ObjectivePaths.extension — Methodf::File)Get the extension of a file.
Returns an empty string for a folder.
ObjectivePaths.files — Methodfiles(f::Folder)::Vector{File}Get all files in a folder (without recursion)
ObjectivePaths.get_file_format — Methodgetfileformat(nbytes; suffix="B") Return a string with formatted file size.
ObjectivePaths.highlight_path — Methodhighlight_path(path::String)Add Term's markup syntax to highlights parts of a path.
ObjectivePaths.info — Methodinfo(f::Folder)Create a detailed visualization of a folder's content
ObjectivePaths.name — Methodname(dir::AbstractPath)Get name (last part) of a path.
ObjectivePaths.nfiles — Methodnfiles(f::Folder)Get the number of files in a folder
ObjectivePaths.path — Methodpath(p::String)Create a Folder or a File type from a string with a path.
ObjectivePaths.repr_info — Functionrepr_infoCreate a compact textual representation of an AbstractPath
ObjectivePaths.subdirs — Methodsubdirs(f::Folder)::Vector{Folder}Get all subfolders in a folder (without recursion)
ObjectivePaths.tree — Methodtree(dir::String)::TreeConstruct a term Tree with a folder's content.