currentdir

File currentdir.str
Author unknown
Since unknown

Module containing the strategies to handlethe administration of the current directory




Statistics


General
Lines of code 69
Stratego
Module number 1 (100% documented)
Constructor number 0
Overlay number 0
Strategy number 7 (100% documented)
Rule number 0
DynamicRule number 0



Strategy summary


add-current-dir Adds the current directory in front of a path if the path is relative currentdir.str
find-file-in-current-directory(ATerm filename) Main strategy currentdir.str
get-php-current-directory Retrieves the current directory for the process currentdir.str
php-clean-current-directory Resets the current directory and removes all the old current directories currentdir.str
prev-php-current-directory Resets the current directory to the directory before the current directory currentdir.str
save-php-current-directory Saves the current directory currentdir.str
set-php-current-directory(ATerm path) Sets the current directory for the process currentdir.str



Strategy details


ATerm add-current-dir
File currentdir.str
Author unknown
Since unknown
 

Adds the current directory in front of a pathif the path is relative. Otherwise it will build thepath.


type String -> String

 
ATerm find-file-in-current-directory(ATerm filename)
File currentdir.str
Author unknown
Since unknown
 

Main strategy



 
ATerm get-php-current-directory
File currentdir.str
Author unknown
Since unknown
 

Retrieves the current directory for the process.The default value is the standard current working directory


type _ -> String

 
ATerm php-clean-current-directory
File currentdir.str
Author unknown
Since unknown
 

Resets the current directory and removesall the old current directories



 
ATerm prev-php-current-directory
File currentdir.str
Author unknown
Since unknown
 

Resets the current directory to the directory before thecurrent directory. Should be used together with 'save-php-current-directory'to taverse directories.



 
ATerm save-php-current-directory
File currentdir.str
Author unknown
Since unknown
 

Saves the current directory. The directory is saved in sucha way that one can return to the old current directory byusing 'prev-php-current-directory'.



 
ATerm set-php-current-directory(ATerm path)
File currentdir.str
Author unknown
Since unknown
 
Parameters
ATerm path path String, the path to the working directory

Sets the current directory for the process.