Nevron Open Vision Documentation
Folders

The NFolder class contains properties and methods for working with folders in a platform independent way. In most cases you should use the following folder properties of the NApplication class:

In case you want to get an NFolder instance for a file system path, use the GetFolder method of the NFileSystem class.

The methods of the NFolder class are organized into two major categories:

Folder and File Information

The following methods of the NFolder class provide directory information:

Most of the methods above are also available as static methods of the NFolder class.

To get a file or a subfolder in a given folder it is recommended to use the GetFile and GetSubFolder methods, respectively. For example, to get the file "MyFile.txt" from the folder "C:\Documents", you can use the following code:

Get a file from folder
Copy Code
NFolder folder = NFileSystem.GetFolder("C:\Documents");
NFile file = folder.GetFile("MyFile.txt");
File System Info and Manipulation

The following methods of the NFolder class lets you manipulate the file system:

The methods above are also available as static methods of the NFolder class.

The NFolder class provides the following properties:

See Also
Send Feedback