PathNameCreateFromExisting Method |
Creates a path from a name that could be a file or a folder name. If a file with the given name exists in the file system,
it is decided that this is a file name, and a
FileName is returned. If a folder with the given name exists
in the file system, then it is decided that this is a folder, and a
DirectoryName is returned.
If neither of the two cases above applies, null is returned.
Namespace: Altaxo.Main.ServicesAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static PathName? CreateFromExisting(
string fileOrFolderName
)
Parameters
- fileOrFolderName String
- Name of the file or folder.
Return Value
PathNameEither a
FileName, a
DirectoryName, or null if neither a file nor folder with this name exists.
See Also