getDirectoryFromPath
Извлекает каталог из абсолютного пути. Возвращает абсолютный путь с завершающей косой чертой, исключая имя файла.
getDirectoryFromPath(path) → returns string
Описание аргументов
path string Обязательный
Примеры Пример кода с вызовом функции getDirectoryFromPath
getDirectoryFromPath("C:\temp\file.txt") Ожидаемый результат: C:\temp\
© 2012–present Foundeo, Inc. and the CFDocs contributors.
Licensed under the MIT License.
ColdFusion is a trademark of Adobe Systems Incorporated.
https://cfdocs.org/getdirectoryfrompath