file path
A path is the exact address of a file or folder on a computer: it shows which folders must be traversed to reach it.
In plain terms
A path is like a postal address. A letter shows country, city, street, and house number; a computer shows drive, folder, subfolder, and filename. For example, C:\Users\Kata\Documents\szamla.pdf means the file named szamla.pdf is on the C drive, in Kata's Documents folder. Hungarian Windows displays this folder as "Dokumentumok," but its real name is Documents.
It is necessary because a machine cannot make sense of 'that spreadsheet from yesterday'. For a program, command, or AI agent, you must specify exactly which file you mean, letter by letter. Two files with identical names can coexist peacefully on a computer if they are in different folders, as their file paths differ.
Two types exist. An absolute path is the full address starting from the drive or root folder. A relative path is only guidance from where you currently stand, as when you tell someone: "the second door on the left."
How it works
- The machine stores files in a tree-like system: there is a starting point (root), from which folders open, and from those folders, further folders and files.
- The path lists the folders to traverse in order, and the names are separated by a delimiter. On Windows, this is traditionally the backslash (\), although most programs also accept the forward slash. On macOS and Linux, the forward slash (/) is the delimiter.
- An absolute path starts from the root (for example, C:\ on Windows, and / on Linux and macOS), so it points to the same file from anywhere.
- A relative path is understood in relation to the current folder, the so-called working directory. A single dot (.) represents the folder you are currently in, while two dots (..) represent the one above it.
- When you open a file, the operating system traverses the path step by step. If any name is incorrect or missing, you receive an error message, such as that the file or path cannot be found.
An everyday example
You ask a coding agent to fix a bug, and it replies: "I modified the src/oldalak/kapcsolat.html file." This is a relative path: within your project folder, you find the file in the src folder, inside the oldalak folder. You encounter the same when a program asks during installation where to save, or when you see where you are in the title bar of File Explorer.
Who is affected
A common misconception
Limits and risks
- A path is just an address, not the file itself: if you move or rename the file, the old path points to nothing.
- Systems differ from each other. Windows uses a backslash, and case usually does not matter. Linux uses a forward slash, and 'Jelentes.pdf' and 'jelentes.pdf' are two separate files. macOS, by default, does not distinguish between uppercase and lowercase letters.
- Spaces, accents, and overly long paths can cause problems; on Windows, for example, many programs traditionally handle paths of up to 260 characters.
- The file path can be revealing: it often contains your username or your client's name, so review it before sharing a screenshot or copying it into an AI tool.
Similar, but not the same
- filename – The filename only names the file itself, while the path also specifies where it is located.
- URL (web address) – A URL identifies a page or file on the internet, while a path is within your own machine or a server's file system. In a URL, the part after the machine name (domain) is itself a path.
- parancsikon – A shortcut is a small file that stores a path and takes you there when clicked; the path itself is the address.
Related concepts
file system, operating system
absolute path, relative path, working directory
A brief history
The system of nested folders and the concept of the file path emerged in the mid-1960s during the design of the Multics operating system, and Unix made the slash notation standard. The backslash used on Windows today appeared with MS-DOS 2.0 in 1983.
Where things stand
Every computer, phone, and server works with file paths, even if mobile apps hide them from you. With the spread of coding agents, more non-developers encounter them, as agents use file paths to indicate which files they have read or modified.
In the news
- FDA grants Breakthrough Device Designation to Cleo Skin AI pathology toolNov 6, 2026 · Health
- IMF's Georgieva: a slowdown in AI-driven growth would be a factor for central banksNov 4, 2026 · Money
- FDA classifies digital cervical cytology slide imaging systems that use AI algorithmsNov 4, 2026 · Health
- Agilent completes Proscia acquisition for up to $270mNov 4, 2026 · Health
- Goldman Sachs says AI-displaced workers face a harder path back to employmentNov 3, 2026 · Work & HR
- AI coding tools disrupt junior developers' career path, Alasdair Allan saysNov 2, 2026 · Code
- Octopath AI raises £1.5M to support cancer pathologyNov 2, 2026 · Health
- Isomorphic Labs plans human trials soon of AI-designed cancer drugsOct 30, 2026 · Health
Also known as
file path · path · file path · file path · file path · path · pathname · filepath
Sources
This entry was machine-edited and has undergone machine expert review; the “In the news” section updates automatically from Agent Age stories.