Zymba Documentation
Path
Text
object @Path() {
DIRECTORYSEPARATOR;
MAXLENGTH;
PATHSEPARATOR;
fromURI(string $uri): string {}
getBase(string $path): string {}
getDirectory(string $path): string {}
getExtension(string $path): string {}
getFile(string $path): string {}
getTempDirectory(): string {}
getWorkingDirectory(): string {}
hasExtension(string $path): bool {}
isAbsolute(string $path): bool {}
normalize(string $path): string {}
parse(string $path): object {}
setWorkingDirectory(string $path) {}
toAbsolutePath(string $path): string {}
toRealPath(string $path): string {}
toURI(string $path): string {}
}
Static path related constants and functions.
Functions
Gets the absolute path of the system's directory for temporary files.
CODE
@Path.getTempDirectory(): string
Returns
| Type | Value |
|---|---|
string |
Gets the absolute path of the current working directory.
CODE
@Path.getWorkingDirectory(): string
Returns
| Type | Value |
|---|---|
string |
Sets the path of the working directory.
CODE
@Path.setWorkingDirectory(string $path): void
Parameters
| Name | Type | Value | Default |
|---|---|---|---|
| path | string | "" |