ACF Library

GetExtentionFromPath

Back to List

Description: Retrieve the file type (extention) from a filename or a full path.

FileMaker Prototype:

Set Variable [$res; ACFU_GetExtentionFromPath( string_path)]

Category: BOOTSTRAP

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

Function source:

function GetExtentionFromPath ( string path ) 
   FunctionID 207; 
   path = substitute ( path, ":", "/");
   path = substitute ( path, "\\", "/");
   return regex_replace("^(.+/)(.+\.)(.+)$", path, "\3");
end

Back to List