23 #if defined (HAVE_CONFIG_H) 189 #if defined (__WIN32__) 191 if (full_file_name.length () > 1
193 && ! (full_file_name.length () == 3 && full_file_name[1] ==
':'))
194 full_file_name.pop_back ();
197 const char *cname = full_file_name.c_str ();
199 time_t sys_atime, sys_mtime, sys_ctime;
205 &sys_atime, &sys_mtime, &sys_ctime,
209 &sys_atime, &sys_mtime, &sys_ctime,
215 errmsg = std::strerror (errno);
236 time_t sys_atime, sys_mtime, sys_ctime;
241 &sys_atime, &sys_mtime, &sys_ctime,
247 errmsg = std::strerror (errno);
For example cd octave end example noindent changes the current working directory to file
bool octave_is_fifo_wrapper(mode_t mode)
file_stat(const std::string &n="", bool fl=true)
Return the CPU time used by your Octave session The first output is the total time spent executing your process and is equal to the sum of second and third which are the number of CPU seconds spent executing in user mode and the number of CPU seconds spent executing in system mode
std::string tilde_expand(const std::string &name)
void update_internal(bool force=false)
int octave_stat_wrapper(const char *fname, mode_t *mode, ino_t *ino, dev_t *dev, nlink_t *nlink, uid_t *uid, gid_t *gid, off_t *size, time_t *atime, time_t *mtime, time_t *ctime, dev_t *rdev, long *blksize, long *blocks)
bool octave_have_struct_stat_st_blocks(void)
int octave_fstat_wrapper(int fid, mode_t *mode, ino_t *ino, dev_t *dev, nlink_t *nlink, uid_t *uid, gid_t *gid, off_t *size, time_t *atime, time_t *mtime, time_t *ctime, dev_t *rdev, long *blksize, long *blocks)
bool octave_is_dir_wrapper(mode_t mode)
std::string mode_as_string(void) const
bool octave_is_lnk_wrapper(mode_t mode)
bool octave_is_reg_wrapper(mode_t mode)
bool octave_is_chr_wrapper(mode_t mode)
bool octave_is_blk_wrapper(mode_t mode)
static bool have_struct_stat_st_blocks(void)
static bool have_struct_stat_st_rdev(void)
bool octave_have_struct_stat_st_blksize(void)
bool octave_is_sock_wrapper(mode_t mode)
bool octave_have_struct_stat_st_rdev(void)
octave::sys::file_stat fs(filename)
int octave_lstat_wrapper(const char *lname, mode_t *mode, ino_t *ino, dev_t *dev, nlink_t *nlink, uid_t *uid, gid_t *gid, off_t *size, time_t *atime, time_t *mtime, time_t *ctime, dev_t *rdev, long *blksize, long *blocks)
void update_internal(bool force=false)
void octave_strmode_wrapper(mode_t mode, char *buffer)
static bool have_struct_stat_st_blksize(void)
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string
bool is_newer(const sys::time &time) const