def path.file_name

bend-kit-files@0.3.1.0 · files.bend:103

import bend-kit-files@0.3.1.0/files.bend as Files
import Base

103# The last segment of the normalized path; "" for "/" and ".".
104def path.file_name(p: String) -> String:
105  path.file_name.fin(List.last(&2, String, String.split(path.normalize(p), '/')))

Uses (6)

Used by (2)