NevronOpenVision
Nevron.Nov.IO Namespace / NPath Class


NPath Class Methods

For a list of all members of this type, see NPath members.

Public Methods
 NameDescription
Public MethodOverloaded. Combines two paths into one.  
Public MethodGets the extension of the specified file name without the dot, for example: "txt", "rtf", "docx", etc. If the given file name does not have an extension, String.Empty is returned.  
Public MethodGets only the file name and the extension of the given path. Also works for directories. For example, if the path is "C:\Documents\MyFile.txt", this method returns "MyFile.txt". If the path it "C:\Documents", this method returns "Documents".  
Public MethodGets only the file name of the given full file path without the file extension. For example, if the path is "C:\Documents\MyFile.txt", this method returns "MyFile".  
Public MethodReturns the absolute path for the specified path string using the current directory if the given path string is relative.  
Public MethodGets the name of the parent folder of the given path. For example, if the path is "C:\Documents\MyFile.txt", this method returns "Documents".  
Public MethodGets the path to the parent folder of the given path. For example, if the path is "C:\Documents\MyFile.txt", this method returns "C:\Documents\".  
Public MethodGets the root directory information of the specified path (e.g. "C:\").  
Public MethodChecks whether the specified path string contains a root, for example "C:\Documents\MyFile.txt" contains a root - "C:\" and an Unix (Mac OS) path "/Users/John/Documents/MyFile.txt" contains a root "/".  
Public MethodJoins the specified path steps into a single path string.  
Public MethodGets a relative path leading from the first path (fromPath) to the second one (toPath). For example, if you pass "C:\Documents\Mark" as fromPath and "C:\Documents\Jane" as toPath, the resulting relative path will be "..\Jane".  
Public MethodNormalizes the given path by resolving all "." and ".." path segments. The directory separator character for the current platform is used, i.e. '\' for Windows and '/' for Mac. For example, normalizing "C:\Documents\..\MyFile.txt" will result in "C:\MyFile.txt".  
Public MethodGets the steps in this path. Also retrieves whether the path is rooted.  
Top
Protected Methods
 NameDescription
Internal Method  
Internal Method  
Internal Method  
Internal Method  
Top
See Also