parent name :\users\al\spam txt drive stem suffix /home/al/spam txt anchor parent name figure - the parts of windows (topand macos/linux (bottomfile path the parts of file path include the followingthe anchorwhich is the root folder of the filesystem on windowsthe drivewhich is the single letter that often denotes physical hard drive or other storage device the parentwhich is the folder that contains the file the name of the filemade up of the stem (or base nameand the suffix (or extensionnote that windows path objects have drive attributebut macos and linux path objects don' the drive attribute doesn' include the first backslash to extract each attribute from the file pathenter the following into the interactive shellp path(' :/users/al/spam txt' anchor ' :\\ parent this is path objectnot string windowspath(' :/users/al' name 'spam txtp stem 'spamp suffix txtp drive ' :these attributes evaluate to simple string valuesexcept for parentwhich evaluates to another path object