Summary
Represents a file path.
- Assembly
- Wyam
.Common .dll - Namespace
- Wyam
.Common .IO - Interfaces
-
- IComparable
<NormalizedPath> - IComparable
- IEquatable
<NormalizedPath>
- IComparable
- Base Types
-
- Object
- NormalizedPath
graph BT
Type-->Base0["NormalizedPath"]
click Base0 "/api/Wyam.Common.IO/NormalizedPath"
Base0-->Base1["Object"]
Type-.->Interface0["IComparable<NormalizedPath>"]
Type-.->Interface1["IComparable"]
Type-.->Interface2["IEquatable<NormalizedPath>"]
Type["FilePath"]
class Type type-node
Syntax
public sealed class FilePath : NormalizedPath, IComparable<NormalizedPath>, IComparable,
IEquatable<NormalizedPath>
Constructors
| Name | Summary |
|---|---|
| FilePath |
Initializes a new instance of the Wyam.Common.IO.FilePath class.
The path will be considered absolute if the underlying OS file system
considers it absolute.
|
| FilePath |
Initializes a new instance of the Wyam.Common.IO.FilePath class..
|
| FilePath |
Initializes a new instance of the Wyam.Common.IO.FilePath class
with the specified file provider.
The path will be considered absolute if the underlying OS file system
considers it absolute.
|
| FilePath |
Initializes a new instance of the Wyam.Common.IO.FilePath class
with the specified file provider.
|
| FilePath |
Initializes a new instance of the Wyam.Common.IO.FilePath class
with the specified file provider and/or path.
|
| FilePath |
Initializes a new instance of the Wyam.Common.IO.FilePath class
with the specified file provider.
The path will be considered absolute if the underlying OS file system
considers it absolute.
|
| FilePath |
Initializes a new instance of the Wyam.Common.IO.FilePath class
with the specified file provider.
|
Fields
| Name | Constant Value | Summary |
|---|---|---|
| DefaultFileProvider |
The default file provider.
Inherited from NormalizedPath
static
|
Properties
| Name | Value | Summary |
|---|---|---|
| Directory | DirectoryPath |
Gets the directory part of the path.
|
| Extension | string |
Gets the file extension (including the preceding ".").
|
| FileName | FilePath |
Gets the filename.
|
| File |
FilePath |
Gets the filename without it's extension.
|
| FileProvider | Uri |
Gets the file provider for this path. If this is a relative path,
the file provider will always be
null. If this is an absolute
path and the file provider is null it indicates the path
is not intended for use with an actual file provider.
Inherited from NormalizedPath
|
| FullPath | string |
Gets the full path.
Inherited from NormalizedPath
|
| HasExtension | bool |
Gets a value indicating whether this path has a file extension.
|
| IsAbsolute | bool |
Gets or sets a value indicating whether this path is absolute.
Inherited from NormalizedPath
|
| IsRelative | bool |
Gets a value indicating whether this path is relative.
Inherited from NormalizedPath
|
| Root | DirectoryPath |
Gets the root of this path or "." if this is a relative path
or there is no root.
Inherited from NormalizedPath
|
| RootRelative | FilePath |
Gets the file path relative to it's root path.
|
| Segments | string[] |
Gets the segments making up the path.
Inherited from NormalizedPath
|
Methods
| Name | Value | Summary |
|---|---|---|
| AppendExtension |
FilePath |
Appends a file extension to the path.
|
| ChangeExtension |
FilePath |
Changes the file extension of the path.
|
| Collapse |
FilePath |
Collapses a
Wyam.Common.IO.FilePath containing ellipses.
|
| CompareTo |
int |
Inherited from NormalizedPath
|
| CompareTo |
int |
Inherited from NormalizedPath
|
| Equals |
bool |
Inherited from NormalizedPath
|
| FromString |
FilePath |
Performs a conversion from
string to Wyam.Common.IO.FilePath.
static
|
| FromUri |
FilePath |
Performs a conversion from
System.Uri to Wyam.Common.IO.FilePath.
static
|
| GetHashCode |
int |
Inherited from NormalizedPath
|
| InsertPrefix |
FilePath |
Inserts a prefix into the file name.
|
| InsertSuffix |
FilePath |
Inserts a suffix into the file name before the extension.
|
| ToString |
string |
Returns a
string that represents this path.
Inherited from NormalizedPath
|
