Operations on File Names

The Wolfram Language provides a convenient collection of platform-independent functions for manipulating names of files and directories. These functions can also be used to assemble and disassemble file-name-like constructs such as URLs.

(RefLink[FileNameSplit, paclet:ref/FileNameSplit]) — split a file name into directory and name parts

(RefLink[FileNameJoin, paclet:ref/FileNameJoin]) — assemble a file name from a list of components

(RefLink[FileNameTake, paclet:ref/FileNameTake]), (RefLink[FileNameDrop, paclet:ref/FileNameDrop]) — take, drop elements from a file name

(RefLink[ExpandFileName, paclet:ref/ExpandFileName]) — textually expand to absolute file name form

(RefLink[AbsoluteFileName, paclet:ref/AbsoluteFileName]) — determine the absolute name for a file in your filesystem

(RefLink[ContextToFileName, paclet:ref/ContextToFileName]) — name of file conventionally associated with a context

(OrangeLink[Directories », paclet:guide/DirectoriesAndDirectoryOperations])

(RefLink[DirectoryQ, paclet:ref/DirectoryQ]) — test whether a name corresponds to an existing directory

(RefLink[FileNames, paclet:ref/FileNames]) — list names of files or directories on your computer system

(RefLink[FileExistsQ, paclet:ref/FileExistsQ]) — test whether a file exists on your computer system

(RefLink[FindFile, paclet:ref/FindFile]) — find a file on (RefLink[$Path, paclet:ref/$Path]), etc.

(RefLink[FileNameSetter, paclet:ref/FileNameSetter]) — interactively browse for a file

(RefLink[File, paclet:ref/File]) — symbolic representation of a file location

(OrangeLink[URLs », paclet:guide/URLManipulation])