eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'V::File':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: File (in V)


Inheritance:

   Object
   |
   +--V::File

Package:
stx:libcompat
Category:
Compatibility-ST/V
Version:
rev: 1.3 date: 2021/01/20 13:17:12
user: cg
file: V__File.st directory: libcompat
module: stx stc-classLibrary: libcompat

Class protocol:

misc queries
o  composePath: path stem: packageName extension: extension

o  exists: pathname

o  extensionDelimiter

o  fullPathOf: pathname relativeTo: aBaseName
dummy for now ...

o  relativePathOf: pathname to: aBaseName
dummy for now ...

o  splitExtensionFrom: aString
Splits aPathname string and answers the extension portion.
Answers the empty string if there is no extension.

o  splitFilenameFrom: aPathnameString
not certain.

o  splitPath: aString
Splits aPathname string into its path, stem and extension components and answers
a four element Array of these.
Note: We use the C-runtime library to implement this, hence either backward or forward
slashes (i.e. $\ or $/) are acceptable as pathname delimiters.

Usage example(s):

     File splitPath: '\\exept\cg\home\smalltalk\st_free\pocketSmalltalk\ide1.5\pst.pac'

o  splitPathFrom: aPathnameString
Splits aPathname string and answers the path portion (including the drive letter, if any).
Answers the empty String if there is no path.

o  splitStemFrom: filename



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 21 Dec 2024 15:52:17 GMT