# fs.basename ## Function Returns the last level name of the path. ## Syntax ```bt fs(path).basename() ``` ## Parameters No parameters. ## Return value | Type | Description | | ------ | ------ | | String | Returns the file name or directory name. | ## Example ```bt file = fs('/var/log/app.log') result = file.basename() // Output: app.log print result ``` ## Notes - Returns an empty string if the path has no filename part.