getfoldername()
← Back to Module fileio
Get folder name of a path
getfoldername(path)
path
string
import fileio getfoldername("/path/to/file.txt") ' Returns "/path/to"
Documentation version: 1.0.16. Updated on: 14 July 2025.Dinfio is designed and written by Muhammad Faruq Nuruddinsyah. Copyright © 2014-2025. All rights reserved.