file/ | |
License | Copyright © 2007-2011, FreeBASIC Extended Library Development Group |
ext | |
Directory | Perform filesystem operations in a platform independant manner. |
dir | |
Functions | |
root | Returns a Directory object pointing to the root of the current filesystem. |
rootPath | Returns a string containing the path of the root of the current filesystem. |
home | Returns a Directory object pointing to the current user’s home directory. |
homePath | Returns a string containing the path to the current user’s home directory. |
temp | Returns a Directory object pointing to the system’s temporary directory. |
tempPath | Returns a string containing the path to the system’s temporary directory. |
toNativeSeperators | Converts all seperators in the passed string to the seperators the current platform expects. |
cleanPath | Removes all multiple directory separators |
Copyright © 2007-2011, FreeBASIC Extended Library Development Group
Distributed under the FreeBASIC Extended Library Group License. See accompanying file LICENSE.txt or copy at http://code.google.com
Functions | |
root | Returns a Directory object pointing to the root of the current filesystem. |
rootPath | Returns a string containing the path of the root of the current filesystem. |
home | Returns a Directory object pointing to the current user’s home directory. |
homePath | Returns a string containing the path to the current user’s home directory. |
temp | Returns a Directory object pointing to the system’s temporary directory. |
tempPath | Returns a string containing the path to the system’s temporary directory. |
toNativeSeperators | Converts all seperators in the passed string to the seperators the current platform expects. |
cleanPath | Removes all multiple directory separators |
declare function root () as Directory
Returns a Directory object pointing to the root of the current filesystem. On Unix systems this is “/”, on DOS and Windows systems this is the root directory of the current drive.
declare function homePath () as string
Returns a string containing the path to the current user’s home directory. On DOS systems this is equivalent to rootPath.
declare function temp () as Directory
Returns a Directory object pointing to the system’s temporary directory. On Unix systems this is usually “/var”. On DOS and Windows 9x systems this is usually “C:\TEMP”. The location varies on Windows NT systems but is set in the environment variable %TEMP%.
Returns a Directory object pointing to the root of the current filesystem.
declare function root () as Directory
Returns a string containing the path of the root of the current filesystem.
declare function rootPath () as string
Returns a Directory object pointing to the current user’s home directory.
declare function home () as Directory
Returns a string containing the path to the current user’s home directory.
declare function homePath () as string
Returns a Directory object pointing to the system’s temporary directory.
declare function temp () as Directory
Returns a string containing the path to the system’s temporary directory.
declare function tempPath () as string
Removes all multiple directory separators
declare function cleanPath( byref pathn as const string ) as string