ACF Library

GetDirectoriesFromPath

Back to List

Description: Remove the filename part from a full path, and return the directory path

FileMaker Prototype:

Set Variable [$res; ACFU_GetDirectoriesFromPath( string_path)]

Category: BOOTSTRAP

NOTE: The bootstrap library comes preloaded in the plugin. Read more

Function source:

function GetDirectoriesFromPath ( string path ) 
   FunctionID 206; 
   path = substitute ( path, ":", "/");
   path = substitute ( path, "\\", "/");
   return regex_replace("^(.+)/(.+\..+)$", path, "\1");
end

Back to List