Difference between revisions of "Working with Directories in Recital"
From Recital Documentation Wiki
Yvonnemilne (Talk | contribs) (→Finding and Changing the Current Working Directory in Recital) |
Yvonnemilne (Talk | contribs) |
||
(4 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
==Working with Directories in Recital== | ==Working with Directories in Recital== | ||
===Creating Directories in Recital=== | ===Creating Directories in Recital=== | ||
+ | * [[MKDIR|mkdir]] - create a directory | ||
+ | |||
+ | <pre> | ||
+ | mkdir <directory as character> | ||
+ | </pre> | ||
+ | |||
===Deleting a Directory in Recital=== | ===Deleting a Directory in Recital=== | ||
+ | * [[RMDIR|rmdir]] - delete a directory | ||
+ | |||
+ | <pre> | ||
+ | rmdir <directory as character> | ||
+ | </pre> | ||
+ | |||
===Finding and Changing the Current Working Directory in Recital=== | ===Finding and Changing the Current Working Directory in Recital=== | ||
* [[CURDIR()|curdir()]] - return name of the current directory | * [[CURDIR()|curdir()]] - return name of the current directory | ||
Line 22: | Line 34: | ||
===Listing Files in a Directory in Recital=== | ===Listing Files in a Directory in Recital=== | ||
− | === | + | * [[DIR|dir]] - display a directory of files |
+ | |||
+ | <pre> | ||
+ | dir [<skeleton as character>] | ||
+ | </pre> | ||
+ | |||
+ | * [[ADIR()|adir()]] - return number of files matching a pattern and load filenmames and information into arrays | ||
+ | |||
+ | <pre> | ||
+ | numeric = adir(<skeleton as character> [, <filenames as array> [, <filesizes as array> | ||
+ | [, <creationdates as array> [, <creationtimes as array> [, <attributes as array>]]]]]) | ||
+ | |||
+ | </pre> | ||
+ | |||
+ | * [[FILECOUNT()|filecount()]]- return number of files matching a pattern | ||
+ | |||
+ | <pre> | ||
+ | numeric = filecount(<skeleton as character>) | ||
+ | </pre> | ||
+ | |||
+ | ===Finding and Changing the Current Search Path in Recital=== | ||
+ | * [[PATH()|path()]] - return current Recital path setting | ||
+ | |||
+ | <pre> | ||
+ | character = path() | ||
+ | </pre> | ||
+ | |||
+ | * [[SET PATH|set path]] - set Recital path | ||
+ | |||
+ | <pre> | ||
+ | set path to [<directories as character>] | ||
+ | </pre> |
Latest revision as of 13:31, 25 January 2010
Contents
Working with Directories in Recital
Creating Directories in Recital
- mkdir - create a directory
mkdir <directory as character>
Deleting a Directory in Recital
- rmdir - delete a directory
rmdir <directory as character>
Finding and Changing the Current Working Directory in Recital
- curdir() - return name of the current directory
character = curdir()
- default()- return name of the current directory
character = default()
- set default - set current directory
set default to [<directory as character>]
Listing Files in a Directory in Recital
- dir - display a directory of files
dir [<skeleton as character>]
- adir() - return number of files matching a pattern and load filenmames and information into arrays
numeric = adir(<skeleton as character> [, <filenames as array> [, <filesizes as array> [, <creationdates as array> [, <creationtimes as array> [, <attributes as array>]]]]])
- filecount()- return number of files matching a pattern
numeric = filecount(<skeleton as character>)
Finding and Changing the Current Search Path in Recital
- path() - return current Recital path setting
character = path()
- set path - set Recital path
set path to [<directories as character>]