FileSystemEntityX extension

on

Properties

dirName String
Gets the part of path before the last separator.
no setter
extension String
Returns the file extension of the path, the portion of the name from the last '.' to the end (including the '.' itself).
no setter
name String
Gets the part of path after the last separator.
no setter
nameWithoutExtension String
Gets the part of path after the last separator, and without any trailing file extension.
no setter

Methods

isWithin(Directory parent) bool
Returns true if this entity is a path beneath parent, and false otherwise.
withName(String newName) FileSystemEntity
Returns a new File with the name part changed