Next: FilePath class-still unclassified, Up: FilePath [Index]
Answer the name of a file named ‘fileName’ which resides in a directory named ‘directory’.
Answer the extension of a file named ‘aString’. Note: the extension includes an initial dot.
Answer the full path to a file called ‘aString’, resolving the ‘.’ and ‘..’ directory entries, and answer the result. ‘/..’ is the same as ’/’.
Determine the path of the name of a file called ‘aString’, and answer the result. With the exception of the root directory, the final slash is stripped.
Determine the path of the name of a file called ‘aString’, and answer the result. With the exception of the root directory, the final slash is stripped. If there is no path, evaluate aBlock and return the result.
Answer the relative path to destName when the current directory is srcName’s directory.
Remove the extension from the name of a file called ‘aString’, and answer the result.
Determine the path of the name of a file called ‘aString’, and answer the result as a directory name including the final slash.
Remove the path from the name of a file called ‘aString’, and answer the file name plus extension.