26 #if defined (HAVE_CONFIG_H)
37 #if defined (OCTAVE_USE_WINDOWS_API)
59 if (! m_name.empty ())
65 #if defined (OCTAVE_USE_WINDOWS_API)
71 m_dir =
reinterpret_cast<void *
> (1);
81 m_errmsg = std::strerror (errno);
85 m_errmsg =
"dir_entry::open: empty filename";
87 return m_dir !=
nullptr;
97 std::list<std::string> dirlist;
99 #if defined (OCTAVE_USE_WINDOWS_API)
100 WIN32_FIND_DATAW find_file_data;
102 std::string file_name;
104 HANDLE h_find_file = FindFirstFileW (pattern.c_str (), &find_file_data);
105 if (h_find_file != INVALID_HANDLE_VALUE)
110 dirlist.push_back (file_name);
112 while (FindNextFileW (h_find_file, &find_file_data));
114 FindClose (h_find_file);
120 dirlist.push_back (fname);
134 #if defined (OCTAVE_USE_WINDOWS_API)
154 OCTAVE_END_NAMESPACE(sys)
155 OCTAVE_END_NAMESPACE(
octave)
static unsigned int max_name_length()
bool open(const std::string &="")
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
unsigned int octave_name_max_wrapper(void)
char * octave_readdir_wrapper(void *dir)
void * octave_opendir_wrapper(const char *dname)
int octave_closedir_wrapper(void *dir)
bool dir_exists(const std::string &dirname)
std::string u8_from_wstring(const std::wstring &wchar_string)
std::wstring u8_to_wstring(const std::string &utf8_string)
std::string tilde_expand(const std::string &name)