fgl_dirname()

The file management functions allow for the management of files and directories. You are able to find the file name from a given path and similarly you can find just the directory from a given file path. You are also able to create and remove directories and paths.

fgl_dirname(path) returns char(n) path

When you specify file and directory names, be careful with their case.

UNIX is case-sensitive, so it will treat files and directories which names come in different cases as separate files.

The fgl_dirname() function returns the directory part of a path provided to it, removing the file name. For example:

fgl_dirname("/tmp/docs/productX/xxx.4gl")

will return "/tmp/docs/productX". As with fgl_basename(), the path is assumed to be a directory and file name so the function simply returns the path minus the last section. If this last section is a folder instead of a file, then that folder is removed anyway.

 

Contact Us

Privacy Policy

Copyright © 2024 Querix, (UK) Ltd.