GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#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 "dirfns.h"
#include "error.h"
#include "errwarn.h"
#include "input.h"
#include "load-path.h"
#include "octave.h"
#include "octave-link.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"
Go to the source code of this file.
Functions | |
OCTAVE_EXPORT octave_value_list | Fcd (const octave_value_list &args, int nargout) the current directory is changed to the user's home directory(@qcode |
OCTAVE_EXPORT octave_value_list | Fpwd (const octave_value_list &, int) dir |
OCTAVE_EXPORT octave_value_list rmdir nd deftypefn *OCTAVE_EXPORT octave_value_list | Freaddir (const octave_value_list &args, int) ar |
static int | octave_change_to_directory (const std::string &newdir) |
Variables | |
ar | |
For example cd octave end example noindent changes the current working directory to an error message is printed and the working directory is not changed | code {chdir} is an alias for @code{cd} and can be used in all of the same calling formats. Compatibility Note: When called with no arguments |
For | example |
For example cd octave end example noindent changes the current working directory to | file {~/octave}. If the directory does not exist |
OCTAVE_EXPORT octave_value_list | ls |
OCTAVE_EXPORT octave_value_list | mkdir |
For example cd octave end example noindent changes the current working directory to an error message is printed and the working directory is not changed | sc |
static bool | Vconfirm_recursive_rmdir = true |
octave::sys::time | Vlast_chdir_time = 0.0 |
OCTAVE_EXPORT octave_value_list Fcd | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 120 of file dirfns.cc.
Referenced by main_window::change_directory_callback(), and install_dirfns_fcns().
OCTAVE_EXPORT octave_value_list Fpwd | ( | const octave_value_list & | , |
int | |||
) |
Referenced by install_dirfns_fcns().
OCTAVE_EXPORT octave_value_list rmdir nd deftypefn* OCTAVE_EXPORT octave_value_list Freaddir | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 175 of file dirfns.cc.
References octave::sys::dir_entry::error(), ovl(), print_usage(), octave::sys::dir_entry::read(), retval, string_vector::sort(), string, and octave::sys::file_ops::tilde_expand().
Referenced by install_dirfns_fcns().
|
static |
Definition at line 71 of file dirfns.cc.
References octave_link::change_directory(), octave::sys::env::chdir(), error(), octave::sys::env::get_current_directory(), octave::sys::time::stamp(), string, octave::sys::file_ops::tilde_expand(), and load_path::update().
tem check only for symbols of the specified type Valid types are table asis item and there are multiple possible matches for built in oct file {~/octave}. If the directory does not exist |
Definition at line 120 of file dirfns.cc.
Referenced by file_editor_tab::check_file_modified(), check_gzip_magic(), file_editor_tab::check_valid_identifier(), octave::sys::file_ops::concat(), files_dock_widget::contextmenu_open(), files_dock_widget::contextmenu_open_in_editor(), QtHandles::Figure::copy_figure_callback(), default_history_file(), main_window::display_release_notes(), bp_table::do_add_breakpoint_1(), octave_call_stack::do_backtrace(), do_edit_history(), load_path::do_find_all_first_of(), load_path::do_find_first_of(), octave::ft_manager::do_get_font(), shortcut_manager::do_import_export(), bp_table::do_remove_all_breakpoints_in_file(), bp_table::do_remove_breakpoint_1(), dump_octave_core(), QTerminal::edit_file(), QtHandles::Figure::editCopy(), execute_pkg_add_or_del(), F__ftp_delete__(), F__ftp_mget__(), F__ftp_mput__(), F__octave_link_edit_file__(), F__octave_link_show_doc__(), F__open_with_system_app__(), octave::dynamic_library::dynlib_rep::fake_reload(), Fdrawnow(), octave::dynamic_library::dynlib_rep::file_name(), QtHandles::Figure::fileSaveFigure(), octave::base_parser::finish_function(), G__osmesa_print__(), Gaudioread(), octave::curl_transfer::get(), get_file_format(), get_help_from_file(), file_editor::handle_edit_mfile_request(), main_window::handle_load_workspace_request(), main_window::handle_save_workspace_request(), QTerminal::handleCustomContextMenuRequested(), if(), install___contourc___fcns(), install___delaunayn___fcns(), install___dispatch___fcns(), install___dsearchn___fcns(), install___eigs___fcns(), install___fltk_uigetfile___fcns(), install___glpk___fcns(), install___ichol___fcns(), install___ilu___fcns(), install___init_fltk___fcns(), install___init_gnuplot___fcns(), install___lin_interpn___fcns(), install___luinc___fcns(), install___magick_read___fcns(), install___osmesa_print___fcns(), install___pchip_deriv___fcns(), install___qp___fcns(), install___voronoi___fcns(), install_amd_fcns(), install_audiodevinfo_fcns(), install_audioread_fcns(), install_balance_fcns(), install_besselj_fcns(), install_betainc_fcns(), install_bitfcns_fcns(), install_bsxfun_fcns(), install_ccolamd_fcns(), install_cellfun_fcns(), install_chol_fcns(), install_colamd_fcns(), install_colloc_fcns(), install_conv2_fcns(), install_convhulln_fcns(), install_daspk_fcns(), install_DASPK_opts_fcns(), install_dasrt_fcns(), install_DASRT_opts_fcns(), install_dassl_fcns(), install_DASSL_opts_fcns(), install_data_fcns(), install_debug_fcns(), install_defaults_fcns(), install_det_fcns(), install_dirfns_fcns(), install_dlmread_fcns(), install_dmperm_fcns(), install_dot_fcns(), install_eig_fcns(), install_ellipj_fcns(), install_error_fcns(), install_fft2_fcns(), install_fft_fcns(), install_fftn_fcns(), install_fftw_fcns(), install_file_io_fcns(), install_filter_fcns(), install_find_fcns(), install_gammainc_fcns(), install_gcd_fcns(), install_getgrent_fcns(), install_getpwent_fcns(), install_getrusage_fcns(), install_givens_fcns(), install_graphics_fcns(), install_gzip_fcns(), install_hash_fcns(), install_help_fcns(), install_hess_fcns(), install_hex2num_fcns(), install_input_fcns(), install_interpreter_fcns(), install_inv_fcns(), install_kron_fcns(), install_lex_fcns(), install_load_path_fcns(), install_load_save_fcns(), install_lookup_fcns(), install_ls_oct_text_fcns(), install_lsode_fcns(), install_LSODE_opts_fcns(), install_lu_fcns(), install_mappers_fcns(), install_matrix_type_fcns(), install_max_fcns(), install_mgorth_fcns(), install_nproc_fcns(), install_oct_hist_fcns(), install_oct_parse_fcns(), install_octave_fcns(), install_octave_link_fcns(), install_ordschur_fcns(), install_ov_base_fcns(), install_ov_bool_mat_fcns(), install_ov_cell_fcns(), install_ov_class_fcns(), install_ov_classdef_fcns(), install_ov_fcn_handle_fcns(), install_ov_fcn_inline_fcns(), install_ov_fcns(), install_ov_java_fcns(), install_ov_null_mat_fcns(), install_ov_oncleanup_fcns(), install_ov_range_fcns(), install_ov_struct_fcns(), install_ov_typeinfo_fcns(), install_ov_usr_fcn_fcns(), install_pager_fcns(), install_pinv_fcns(), install_pr_output_fcns(), install_profiler_fcns(), install_psi_fcns(), install_pt_arg_list_fcns(), install_pt_binop_fcns(), install_pt_eval_fcns(), install_pt_jit_fcns(), install_pt_mat_fcns(), install_qr_fcns(), install_quad_fcns(), install_Quad_opts_fcns(), install_quadcc_fcns(), install_qz_fcns(), install_rand_fcns(), install_rcond_fcns(), install_regexp_fcns(), install_schur_fcns(), install_sighandlers_fcns(), install_sparse_fcns(), install_spparms_fcns(), install_sqrtm_fcns(), install_str2double_fcns(), install_strfind_fcns(), install_strfns_fcns(), install_sub2ind_fcns(), install_svd_fcns(), install_sylvester_fcns(), install_symbfact_fcns(), install_symrcm_fcns(), install_symtab_fcns(), install_syscalls_fcns(), install_sysdep_fcns(), install_time_fcns(), install_toplev_fcns(), install_tril_fcns(), install_tsearch_fcns(), install_typecast_fcns(), install_urlwrite_fcns(), install_utils_fcns(), install_variables_fcns(), find_files_dialog::is_match(), octave::dynamic_library::dynlib_rep::is_out_of_date(), load_fcn_from_file(), file_editor_tab::load_file(), main(), mk_tmp_hist_file(), octave::base_url_transfer::mput_directory(), octave__init_buffer(), octave_tex__init_buffer(), files_dock_widget::open_item_in_app(), out_of_date_check(), parse_fcn_file(), gnuplot_graphics_toolkit::print_figure(), files_dock_widget::process_new_file(), octave::curl_transfer::put(), raw_help_from_docstrings_file(), file_editor::request_open_file(), file_editor::restore_session(), octave::parser::run(), octave::push_parser::run(), file_editor_tab::save_file(), snarf_file(), sparse_chol_error_internal(), octave_builtin::src_file_name(), tree_anon_fcn_handle::stash_file_name(), file_editor_tab::update_window_title(), and octave::dynamic_library::dynlib_rep::~dynlib_rep().
OCTAVE_EXPORT octave_value_list ls |
OCTAVE_EXPORT octave_value_list mkdir |
Definition at line 158 of file dirfns.cc.
Referenced by octave_mkdir_wrapper().
For example cd octave end example noindent changes the current working directory to an error message is printed and the working directory is not changed sc |
Definition at line 120 of file dirfns.cc.
Referenced by shortcut_manager::do_fill_treewidget(), shortcut_manager::import_shortcuts(), octave::base_parser::make_classdef(), and QTerminal::notice_settings().
octave::sys::time Vlast_chdir_time = 0.0 |
Definition at line 68 of file dirfns.cc.
Referenced by out_of_date_check().