muse_builtin_misc.c File Reference

#include "muse_builtins.h"
#include <string.h>

Include dependency graph for muse_builtin_misc.c:


Functions

static muse_cell generate_files (FILE *info, int i, muse_boolean *eol)
muse_cell fn_list_files (muse_env *env, void *context, muse_cell args)
 (list-files [pattern]).
muse_cell fn_list_folders (muse_env *env, void *context, muse_cell args)
 (list-folders parent-folder).

Detailed Description

Author:
Srikumar K. S. (mailto:kumar@muvee.com)
Copyright (c) 2006 Jointly owned by Srikumar K. S. and muvee Technologies Pte. Ltd.

All rights reserved. See LICENSE.txt distributed with this source code or http://muvee-symbolic-expressions.googlecode.com/svn/trunk/LICENSE.txt for terms and conditions under which this software is provided to you.

A collection of OS-specific functions exposed in the language.


Function Documentation

static muse_cell generate_files ( FILE *  info,
int  i,
muse_boolean eol 
) [static]

muse_cell fn_list_files ( muse_env env,
void *  context,
muse_cell  args 
)

(list-files [pattern]).

Returns a list of files that patch the given pattern. For example:

 (list-files "*.jpg")
will list the JPG files in the current folder. Note that the returned list only has the file names and not the full paths to the files.

muse_cell fn_list_folders ( muse_env env,
void *  context,
muse_cell  args 
)

(list-folders parent-folder).

Returns a list of folder names for all the folders that exist under the given parent folder. For example:

 (list-folders "../*")
will list the folders above the current folder. Note that the returned list only has the folder names and not the full paths to the folders. Also, the folder names don't end with '/' or any such path separator character.


Generated on Mon Sep 25 23:12:47 2006 for muSE by  doxygen 1.4.7