Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

Shell commands
[LUA extensions]


Detailed Description

LUA shell commands.

Author:
benjamin gerard


Files

file  dirfunc.lua
 Directory and filename support.

file  ls.lua
 Directory listing core function.


Modules

group LUA enhanced shell
 LUA enhanced shell.


Directory and file functions.

 get_path_and_leaf (var pathname, var pwd)
 Get path and leaf from a filename.

 get_nude_name (var pathname)
 Get nude name (remove path and extension).

 fullpath (var name, var pwd)
 Create a full path name.

 chdir (var path)
 Change current directory.

 fullpath_convert (var name, var arglist)
 Get path and leaf from a filename.

 deltree (var path)
 Recursively delete a directory and its files.

 ls (...)
 Directory listing.


Variables

string PWD
 Current path.


Function Documentation

get_path_and_leaf var  pathname,
var  pwd
 

Get path and leaf from a filename.

Parameters:
pathname full path
pwd optionnal pwd, if omitted PWD global is used.
Returns:
path,leaf

get_nude_name var  pathname  ) 
 

Get nude name (remove path and extension).

Parameters:
pathname full
Returns:
path,leaf

fullpath var  name,
var  pwd
 

Create a full path name.

Returns:
fullpath of given filename

chdir var  path  ) 
 

Change current directory.

Parameters:
path new path.
Returns:
new path
Return values:
nil on error (invalid directory)

fullpath_convert var  name,
var  arglist
 

Get path and leaf from a filename.

Parameters:
pathname full path
pwd optionnal pwd, if omitted PWD global is used.
Returns:
path,leaf

deltree var  path  ) 
 

Recursively delete a directory and its files.

Parameters:
path Directory to delete

ls ...   ) 
 

Directory listing.

Display directory listing. If no path is given, PWD is used instead. If the listing is longer than console height, ls wait a key strike. If more than one path is found, detail [-d] is automatically set.

Syntax
ls [-switch] [path1 ..]
Switch
Valid switch are :
  • -l : long listing.
  • -s : sort by size.
  • -d : detail, display directory information summary.

Switch can be concatenate.

ls -ld /ram /vmu


dcplaya documentation version 2.0 Generated on November 2004 by doxygen 1.3.6