|
Class: SimulatedSqueakFileDirectory (in Comanche)
Object
|
+--Comanche::SimulatedSqueakFileDirectory
- Package:
- stx:goodies/webServer/comanche
- Category:
- Net-Communication-HTTP-Comanche-Swiki-STX-Support
- Version:
- rev:
1.20
date: 2018/04/26 10:48:42
- user: cg
- file: SimulatedSqueakFileDirectory.st directory: goodies/webServer/comanche
- module: stx stc-classLibrary: comanche
create/delete file
-
default
-
-
deleteFilePath: fullPathToAFile
-
Delete the file after finding its directory
-
localNameFor: fullName
-
Return the local part the given name.
-
on: pathString
-
Return a new file directory for the given path, of the appropriate FileDirectory subclass for the current OS platform.
name utilities
-
dirPathFor: fullName
-
Return the directory part the given name.
-
splitName: fullName to: pathAndNameBlock
-
Take the file name and convert it to the path name of a directory and a local file name within that directory. FileName must be of the form: <dirPath><delimiter><localName>, where <dirPath><delimiter> is optional. The <dirPath> part may contain delimiters.
queries
-
maxFileNameLength
-
-
pathNameDelimiter
-
return the active directory class's directory seperator character
-
slash
-
accessing
-
checkName: aFileName fixErrors: fixing
-
Check a string aFileName for validity as a file name. Answer the original file name if it is valid. If the name is not valid (e.g., it is too long or contains illegal characters) and fixing is false, raise an error. If fixing is true, fix the name (usually by truncating and/or tranforming characters), and answer the corrected name. The default behavior is just to truncate the name to the maximum length for this platform. Subclasses can do any kind of checking and correction appropriate for their platform.
-
deleteFileNamed: localFileName
-
Delete the file with the given name in this directory.
-
deleteFileNamed: localFileName ifAbsent: aBlock
-
Delete the file with the given name in this directory.
-
fileName: something
-
set the value of the instance variable 'fileName' (automatically generated)
-
fullNameFor: fileName
-
Return a corrected, fully-qualified name for the given file name. If the given name is already a full path (i.e., it contains a delimiter character), assume it is already a fully-qualified name. Otherwise, prefix it with the path to this directory. In either case, correct the local part of the file name.
-
fullPathFor: path
-
-
newFileNamed: localFileName
-
-
oldFileNamed: localFileName
-
-
pathNameDelimiter
-
Return the delimiter character for this kind of directory. This depends on the current platform.
create/delete file
-
deleteDirectory: dName
-
operations
-
containingDirectory
-
-
copyFile: fileStream1 toFile: fileStream2
-
-
createDirectory: dirName
-
-
directoryExists: subFileName
-
-
directoryNamed: subDirName
-
-
directoryNames
-
-
entries
-
-
entryAt: aBaseName
-
Squeak DirectoryEntry
-
fileExists: subFileName
-
-
fileNamed: localFileName
-
-
fileNames
-
-
pathParts
-
-
readOnlyFileNamed: subFileName
-
printing
-
printOn: aStream
-
(comment from inherited method)
append a user printed representation of the receiver to aStream.
The format is suitable for a human - not meant to be read back.
The default here is to output the receiver's class name.
BUT: this method is heavily redefined for objects which
can print prettier.
queries
-
slash
-
|