Working with Directories in Recital

From Recital Documentation Wiki
Revision as of 13:31, 25 January 2010 by Yvonnemilne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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 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 to [<directories as character>]