mglib

Personal IDL library for M. Galloy

single page | use frames     summary     class     fields     routine details     file attributes

fileio/

mg_filename.pro

includes main-level program

Routines

top mg_filename

result = mg_filename( [filename] [, object=object] [, _ref_extra=keywords])

Compose and/or decompose a filename.

Parameters

filename in optional type=string

filename/basename

Keywords

object out optional type=object

object reference of the underlying MGffFilename object; this object will be destroyed if it is not requested using this keyword

_ref_extra in out optional type=keywords

keywords to MGffFilename::init

Examples

Try the main-level example program at the end of this file:

IDL> .run mg_filename
It should do:
IDL> f = mg_filename('a.dat', subdir=['b', 'c'], $ IDL> basename=basename, extension=extension, $ IDL> dirname=dirname, directories=directories) IDL> IDL> print, f, format='(%"Filename: %s")' Filename: b/c/a.dat IDL> IDL> print, basename, format='(%"Basename: %s")' Basename: a.dat IDL> print, extension, format='(%"Extension: %s")' Extension: dat IDL> IDL> print, dirname, format='(%"Directory: %s")' Directory: b/c/ IDL> print, strjoin(directories, ', '), format='(%"Directories: %s")' Directories: b, c

File attributes

Modification date: Wed May 14 15:07:14 2014
Lines: 18
Docformat: rst rst
Personal library of Michael Galloy
Contact me if you have enhancement requests or bug fixes.