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.2 date: 2016/08/22 13:42:38
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.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Thu, 18 Aug 2022 14:46:24 GMT