Path

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/23

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 4:15 AM on 8/14/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

24 Terms

1
New cards

Path

A static class in System.IO that provides methods and properties for manipulating strings containing file and directory paths without directly creating, reading, moving, or deleting those filesystem objects. Domain: C# → .NET → System.IO → Paths

2
New cards

Path.Combine(path1, path2)

Combines two path components into a single path using the appropriate directory separator for the platform.

3
New cards

Path.Join(path1, path2)

Joins path components using an appropriate directory separator while performing less validation than Path.Combine.

4
New cards

Path.GetFileName(path)

Returns the file name and extension portion of a path.

5
New cards

Path.GetFileNameWithoutExtension(path)

Returns the file name portion of a path without its extension.

6
New cards

Path.GetExtension(path)

Returns the extension of the specified path, including the leading period when an extension exists.

7
New cards

Path.ChangeExtension(path, extension)

Returns a path string whose extension has been changed to the specified extension.

8
New cards

Path.GetDirectoryName(path)

Returns the directory information portion of the specified path.

9
New cards

Path.GetFullPath(path)

Returns an absolute path corresponding to the specified path.

10
New cards

Path.GetRelativePath(relativeTo, path)

Returns a relative path from one specified path to another.

11
New cards

Path.IsPathRooted(path)

Determines whether a path begins with a root component rather than being purely relative.

12
New cards

Path.IsPathFullyQualified(path)

Determines whether a path is fully qualified and does not depend on the current directory for interpretation.

13
New cards

Path.GetPathRoot(path)

Returns the root portion of the specified path.

14
New cards

Path.DirectorySeparatorChar

Gets the platform-specific character used to separate directory levels in a path.

15
New cards

Path.AltDirectorySeparatorChar

Gets an alternative directory separator character supported by the platform.

16
New cards

Path.PathSeparator

Gets the platform-specific character used to separate individual paths in a list of paths, such as an environment path variable.

17
New cards

Path.VolumeSeparatorChar

Gets the platform-specific volume separator character.

18
New cards

Path.GetTempPath()

Returns the path of the current user's or system's temporary directory according to the environment.

19
New cards

Path.GetTempFileName()

Creates a uniquely named zero-byte temporary file and returns its full path.

20
New cards

Path.GetRandomFileName()

Returns a cryptographically strong random file or directory name without creating the file or directory.

21
New cards

Path.HasExtension(path)

Determines whether the specified path contains a file-name extension.

22
New cards

Path.GetInvalidFileNameChars()

Returns an array containing characters that are not permitted in file names on the current platform.

23
New cards

Path.GetInvalidPathChars()

Returns an array containing characters that are not permitted in path strings on the current platform.

24
New cards

Path Exists vs Path String

The Path class primarily manipulates path strings; a path processed by Path does not necessarily correspond to a file or directory that actually exists.