Next: , Previous: , Up: FilePath   [Index]


1.77.8 FilePath: file name management

directory

Answer the Directory object for the receiver’s path

extension

Answer the extension of the receiver

full

Answer the full name of the receiver, resolving the ‘.’ and ‘..’ directory entries, and answer the result. Answer nil if the name is invalid (such as ’/usr/../../badname’)

fullName

Answer a String with the full path to the receiver (same as #name; it is useless to override this method).

name

Answer String with the full path to the receiver (same as #fullName).

parent

Answer the Directory object for the receiver’s path

path

Answer the path (if any) of the receiver

stripExtension

Answer the path (if any) and file name of the receiver

stripFileName

Answer the path of the receiver, always including a directory name (possibly ‘.’) and the final directory separator

stripPath

Answer the file name and extension (if any) of the receiver