eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'UnixFilename':

Home

everywhere
www.exept.de
for:
[back]

Class: UnixFilename


Inheritance:

   Object
   |
   +--Filename
      |
      +--UnixFilename

Package:
stx:libbasic
Category:
OS-Unix
Version:
rev: 1.16 date: 2009/10/28 14:02:12
user: cg
file: UnixFilename.st directory: libbasic
module: stx stc-classLibrary: libbasic

Description:


Filenames in Unix.


Class protocol:

queries
o  isBadCharacter: aCharacter
return true, if aCharacter is unallowed in a filename.

o  isCaseSensitive
return true, if filenames are case sensitive.return true, if filenames are case sensitive.

o  nullFilename
Return /dev/null

o  parentDirectoryName
return the name used for the parent directory.
This is '..' for unix and dos-like systems.
(there may be more in the future.

o  separator
return the file/directory separator.

o  separatorString
return the file/directory separator as a string.


Instance protocol:

file queries
o  fileType
this returns a string describing the type of contents of
the file. This is done using the unix 'file' command,
(which usually is configurable by /etc/magic).
Warning:
Since the returned string differs among systems (and language settings),
it is only useful for user-information;
NOT as a tag to be used by a program.

queries
o  isExplicitRelative
return true, if this name is an explicit relative name
(i.e. starts with './' or '../', to avoid path-prepending)

o  isHidden
return true, if the receiver represents a hidden file.
On UNIX, a name starting with a period is considered hidden.

o  isImplicit
return true, if the receiver represents builtin names such as '.' or '..'.
On UNIX, the current and parent dir names are considered implicit.

special accessing
o  osNameForDirectory
internal - return the OS's name for the receiver to
access it as a directory.

o  osNameForFile
internal - return the OS's name for the receiver to
access it as a file.


Examples:


(self named:'/tmp/äöü') writeStream close

ST/X 6.1.1; WebServer 1.620 at exept:8081; Thu, 24 May 2012 04:50:04 GMT