juno.io.path Module

Performs operations on strings that contain file or directory path information.

Licence
See licence.txt for use and distribution terms.

const int MaxPath;

The maximum character length of a path.

char[] currentDirectory();

Returns the current working directory for the current process.

char[] systemDirectory();

Returns the path of the system directory.

char[] tempPath();

Returns the path of the system's temporary folder.

char[] tempFileName();

Creates a uniquely named temporary file on disk and returns the path of that file.

bool isPathRooted(char[] path);

Indicates whether the specified path string contains absolute or relative path information.

char[] combine(char[] path1, char[] path2);

Combines two path strings.

char[] getFileName(char[] path);

Returns the file name and extension of the specified path string.

char[] getFullPath(char[] path);

Returns the absolute path for the specified path string.

enum SpecialFolder;

Specifies constants used to retrieve directory paths to system special folders.

Desktop

The logical Desktop rather than the physical file system location.

Internet



Programs

The directory that contains the user's program groups.

Controls

The Control Panel folder.

Printers



Personal

The directory that serves as a common repository for documents.

Favorites

The directory that serves as a common repository for the user's favorite items.

Startup

The directory that corresponds to the user's Startup program group.

Recent

The directory that contains the user's most recently used documents.

SendTo

The directory that contains the Send To menu items.

RecycleBin

The Recycle Bin folder.

StartMenu

The directory that contains the Start menu items.

Documents

The directory that serves as a common repository for documents.

Music

The "Music" folder.

Video

The "Video" folder.

DesktopDirectory

The directory used to physically store file objects on the desktop.

Computer

The "Computer" folder.

Network

The "Network" folder.

Fonts

The directory that serves as a common repository for fonts.

Templates

The directory that serves as a common repository for document templates.

CommonStartMenu



CommonPrograms

The directory for components that are shared across applications.

CommonStartup



CommonDesktopDirectory



ApplicationData

The directory that serves as a common repository for application-specific data for the current roaming user.

LocalApplicationData

The directory that serves as a common repository for application-specific data that is used by the current, non-roaming user.

InternetCache

The directory that serves as a common repository for temporary Internet files.

Cookies

The directory that serves as a common repository for Internet cookies.

History

The directory that serves as a common repository for Internet history items.

CommonApplicationData

The directory that serves as a common repository for application-specific data that is used by all users.

Windows

The Windows directory.

System

The System directory.

ProgramFiles

The program files directory.

Pictures

The "Pictures" folder.

CommonProgramFiles

The directory for components that are shared across applications.

CommonTemplates



CommonDocuments



Connections



CommonPictures



Resources



LocalizedResources



CDBurning



char[] getFolderPath(SpecialFolder folder);

Gets the path to the specified system special folder.

Parameters
SpecialFolder folder
A constant that identifies a system special folder.

Returns
The path to the specified system special folder, if that folder exists on your computer; otherwise, an empty string.