Added path methods to the FileSystem methods. Added unit tests.

This commit is contained in:
atanasovg
2014-05-07 14:55:43 +03:00
parent e84f305b6d
commit beba0ae4f4
5 changed files with 124 additions and 10 deletions

View File

@@ -127,4 +127,24 @@ export declare module knownFolders {
* Gets the Temporary (Caches) folder available for the current application. This Folder is private for the application and not accessible from Users/External apps.
*/
export function temp(): Folder;
}
/**
* Enables path-specific operations like join, extension, etc.
*/
export declare module path {
/**
* Normalizes a path, taking care of occurrances like ".." and "//"
*/
export function normalize(path: string): string;
/**
* Joins all the provided string components, forming a valid and normalized path.
*/
export function join(...paths: string[]): string;
/**
* Gets the string used to separate file paths.
*/
export var separator: string;
}