GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
dirfns.cc File Reference
#include <cerrno>
#include <cstdio>
#include <cstddef>
#include <cstdlib>
#include <cstring>
#include <sstream>
#include <string>
#include "file-ops.h"
#include "file-stat.h"
#include "glob-match.h"
#include "oct-env.h"
#include "oct-glob.h"
#include "pathsearch.h"
#include "str-vec.h"
#include "Cell.h"
#include "defun.h"
#include "dir-ops.h"
#include "error.h"
#include "errwarn.h"
#include "event-manager.h"
#include "input.h"
#include "load-path.h"
#include "octave.h"
#include "ovl.h"
#include "pager.h"
#include "procstream.h"
#include "sysdep.h"
#include "interpreter.h"
#include "unwind-prot.h"
#include "utils.h"
#include "variables.h"
Include dependency graph for dirfns.cc:

Go to the source code of this file.

Functions

OCTAVE_EXPORT octave_value_list F__fnmatch__ (const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list F__mkdir__ (const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list F__wglob__ (const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Fcd (octave::interpreter &interp, const octave_value_list &args, int nargout)
 
OCTAVE_EXPORT octave_value_list Fconfirm_recursive_rmdir (const octave_value_list &args, int nargout)
 
OCTAVE_EXPORT octave_value_list Ffilesep (const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Fglob (const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Flink (const octave_value_list &args, int nargout)
 
OCTAVE_EXPORT octave_value_list Fpathsep (const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Fpwd (const octave_value_list &, int)
 
OCTAVE_EXPORT octave_value_list Freaddir (const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Freadlink (const octave_value_list &args, int)
 
OCTAVE_EXPORT octave_value_list Frename (octave::interpreter &interp, const octave_value_list &args, int nargout)
 
OCTAVE_EXPORT octave_value_list Frmdir (octave::interpreter &interp, const octave_value_list &args, int nargout)
 
OCTAVE_EXPORT octave_value_list Fsymlink (const octave_value_list &args, int nargout)
 

Variables

static bool Vconfirm_recursive_rmdir = true
 

Function Documentation

◆ F__fnmatch__()

OCTAVE_EXPORT octave_value_list F__fnmatch__ ( const octave_value_list args,
int   
)

Definition at line 708 of file dirfns.cc.

References glob_match::match(), ovl(), print_usage(), and tilde_expand().

◆ F__mkdir__()

OCTAVE_EXPORT octave_value_list F__mkdir__ ( const octave_value_list args,
int   
)

Definition at line 189 of file dirfns.cc.

References concat(), dirname(), mkdir(), ovl(), print_usage(), and tilde_expand().

◆ F__wglob__()

OCTAVE_EXPORT octave_value_list F__wglob__ ( const octave_value_list args,
int   
)

Definition at line 633 of file dirfns.cc.

References ovl(), tilde_expand(), and windows_glob().

◆ Fcd()

OCTAVE_EXPORT octave_value_list Fcd ( octave::interpreter &  interp,
const octave_value_list args,
int  nargout 
)

Definition at line 100 of file dirfns.cc.

References dirname(), octave_value(), and print_usage().

◆ Fconfirm_recursive_rmdir()

OCTAVE_EXPORT octave_value_list Fconfirm_recursive_rmdir ( const octave_value_list args,
int  nargout 
)

Definition at line 780 of file dirfns.cc.

References set_internal_variable(), and Vconfirm_recursive_rmdir.

Referenced by interpreter::maximum_braindamage().

◆ Ffilesep()

OCTAVE_EXPORT octave_value_list Ffilesep ( const octave_value_list args,
int   
)

Definition at line 732 of file dirfns.cc.

References dir_sep_chars, dir_sep_str(), error(), and print_usage().

◆ Fglob()

OCTAVE_EXPORT octave_value_list Fglob ( const octave_value_list args,
int   
)

Definition at line 525 of file dirfns.cc.

References glob_match::glob(), ovl(), print_usage(), and tilde_expand().

◆ Flink()

OCTAVE_EXPORT octave_value_list Flink ( const octave_value_list args,
int  nargout 
)

Definition at line 320 of file dirfns.cc.

References error(), link(), ovl(), print_usage(), and tilde_expand().

◆ Fpathsep()

OCTAVE_EXPORT octave_value_list Fpathsep ( const octave_value_list args,
int   
)

Definition at line 760 of file dirfns.cc.

References ovl(), directory_path::path_sep_str(), and print_usage().

◆ Fpwd()

OCTAVE_EXPORT octave_value_list Fpwd ( const octave_value_list ,
int   
)

Definition at line 137 of file dirfns.cc.

References ovl().

◆ Freaddir()

OCTAVE_EXPORT octave_value_list Freaddir ( const octave_value_list args,
int   
)

Definition at line 154 of file dirfns.cc.

References dirname(), get_dirlist(), ovl(), print_usage(), string_vector::sort(), and tilde_expand().

◆ Freadlink()

OCTAVE_EXPORT octave_value_list Freadlink ( const octave_value_list args,
int   
)

Definition at line 405 of file dirfns.cc.

References ovl(), print_usage(), readlink(), symlink(), and tilde_expand().

◆ Frename()

OCTAVE_EXPORT octave_value_list Frename ( octave::interpreter &  interp,
const octave_value_list args,
int  nargout 
)

◆ Frmdir()

◆ Fsymlink()

OCTAVE_EXPORT octave_value_list Fsymlink ( const octave_value_list args,
int  nargout 
)

Definition at line 362 of file dirfns.cc.

References error(), ovl(), print_usage(), symlink(), and tilde_expand().

Variable Documentation

◆ Vconfirm_recursive_rmdir

bool Vconfirm_recursive_rmdir = true
static

Definition at line 69 of file dirfns.cc.

Referenced by Fconfirm_recursive_rmdir(), and Frmdir().