|
Class: SwikiDirectory (in Comanche)
Object
|
+--Comanche::SwikiEntry
|
+--Comanche::SwikiDirectory
|
+--Comanche::SwikiSubDirectory
- Package:
- stx:goodies/webServer/comanche/swiki
- Category:
- Comanche-Swiki-FileServer
- Version:
- rev:
1.9
date: 2003/08/29 17:08:46
- user: cg
- file: SwikiDirectory.st directory: goodies/webServer/comanche/swiki
- module: stx stc-classLibrary: swiki
SwikiDirectory
is a cacheing file directory that allows you to reference and serve files in it.
INSTANCE VARIABLES:
dir = the corresponding FileDirectory
dirServeCache = a dictionary mapping relative HTTP paths to the corresponding subdirectories
dirRefsCache = a dictionary mapping directory names to the corresponding directories
fileServeCache = a dictionary mapping relative HTTP paths to the corresponding files
fileRefsCache = a dictionary mapping file names to the corresponding SwikiFileVersions
instance creation
-
fromArray: arr onDir: dir
-
-
onDir: dir
-
accessing
-
dir
-
-
dir: aFileDirectory
-
-
directoriesAlphabetically
-
-
fileVersionsAt: key
-
-
filesAlphabetically
-
-
httpPath
-
-
localHttpPath
-
-
size
-
(comment from inherited method)
return the number of the receiver's indexed instance variables;
this method may be redefined in subclasses
cacheing
-
addToDirRefsCache: aSubSwikiDir at: key
-
-
addToDirServeCache: aSubSwikiDir at: key
-
-
addToFileRefsCache: entry at: fullName
-
-
addToFileServeCache: entry at: key
-
-
directoryNamed: dirName
-
Create One
-
directoryNamed: dirName ifAbsent: aBlock
-
-
fileRefsCacheAt: key ifAbsent: block
-
-
fileServeCacheAt: key ifAbsent: block
-
file operations
-
addAliasFrom: key to: value
-
-
aliasDict
-
-
fileEntries
-
-
moveFileNamed: fullPath toFileName: fileName
-
Add alias
-
readOnlyFile: aSwikiFile
-
initialization
-
initialize
-
Fill Directories and Files
-
initializeDirectories
-
Initialize Caches
-
initializeFiles
-
Initialize Caches
referencing
-
referenceDirFs: fs options: dict
-
-
referenceFileNamed: aFileName fs: fs options: dict
-
serving
-
serveDirFs: fs options: dict
-
-
serveFilePath: aFilePath fs: fs options: dict
-
-
servePath: aPath fs: fs options: dict
-
testing
-
directoryExists: dirName
-
-
fileExists: fileName
-
-
fileRefsExists: fileName
-
-
fileServeExists: fileName
-
-
isASubDirectory
-
|