\doxysection{QC\+\_\+\+Dir.\+dox.\+h}
\hypertarget{_q_c___dir_8dox_8h_source}{}\label{_q_c___dir_8dox_8h_source}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ }
\DoxyCodeLine{00003\ \textcolor{keyword}{namespace\ }\mbox{\hyperlink{namespace_qore}{Qore}}\ \{}
\DoxyCodeLine{00005\ }
\DoxyCodeLine{00007\ \textcolor{keyword}{struct\ }\mbox{\hyperlink{struct_qore_1_1_dir_stat_info}{DirStatInfo}}\ \{}
\DoxyCodeLine{00009\ \ \ \ \ \mbox{\hyperlink{group__date__and__time__functions_ga1bd6722e7ca0b4332f0f30aaaa989b08}{date}}\ \mbox{\hyperlink{struct_qore_1_1_dir_stat_info_a934569a03e5b9ea303d9fee1bab8e31f}{atime}};}
\DoxyCodeLine{00011\ \ \ \ \ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{struct_qore_1_1_dir_stat_info_a6e71829c80205f92980aaec1ed0ac8b5}{blksize}};}
\DoxyCodeLine{00013\ \ \ \ \ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{struct_qore_1_1_dir_stat_info_a073d05ea91c59cd933a1cadda4c80989}{blocks}};}
\DoxyCodeLine{00015\ \ \ \ \ \mbox{\hyperlink{group__date__and__time__functions_ga1bd6722e7ca0b4332f0f30aaaa989b08}{date}}\ \mbox{\hyperlink{struct_qore_1_1_dir_stat_info_a80cdf68006d2665811880e3dff6a410c}{ctime}};}
\DoxyCodeLine{00017\ \ \ \ \ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{struct_qore_1_1_dir_stat_info_acc4275d0cfd95db7c25db6001f8469ac}{dev}};}
\DoxyCodeLine{00019\ \ \ \ \ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{struct_qore_1_1_dir_stat_info_a05c5f09df448a4ef10d21c83f959787b}{gid}};}
\DoxyCodeLine{00021\ \ \ \ \ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{struct_qore_1_1_dir_stat_info_a6613f7693e56d91213e708550a6abee9}{inode}};}
\DoxyCodeLine{00023\ \ \ \ \ *\textcolor{keywordtype}{string}\ \mbox{\hyperlink{struct_qore_1_1_dir_stat_info_ac6698705aac156d7e0da7c282fb5c646}{link}};}
\DoxyCodeLine{00025\ \ \ \ \ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{struct_qore_1_1_dir_stat_info_a7e652b50d31968e015b0774b65953ede}{mode}};}
\DoxyCodeLine{00027\ \ \ \ \ \mbox{\hyperlink{group__date__and__time__functions_ga1bd6722e7ca0b4332f0f30aaaa989b08}{date}}\ \mbox{\hyperlink{struct_qore_1_1_dir_stat_info_a1d0e5d52d4bf8a707cde5ae237195ec2}{mtime}};}
\DoxyCodeLine{00029\ \ \ \ \ \textcolor{keywordtype}{string}\ \mbox{\hyperlink{struct_qore_1_1_dir_stat_info_a7c82f1686ba8fae65627e10203584a5e}{name}};}
\DoxyCodeLine{00031\ \ \ \ \ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{struct_qore_1_1_dir_stat_info_a79cbaee20df8ec86c4f62a72c7cc4446}{nlink}};}
\DoxyCodeLine{00033\ \ \ \ \ \textcolor{keywordtype}{string}\ \mbox{\hyperlink{struct_qore_1_1_dir_stat_info_a5b74c9c03bb764508680427e9c2044bf}{perm}};}
\DoxyCodeLine{00035\ \ \ \ \ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{struct_qore_1_1_dir_stat_info_a2e7efb162e56a73b038096e933b7897f}{rdev}};}
\DoxyCodeLine{00037\ \ \ \ \ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{struct_qore_1_1_dir_stat_info_a5a57fd14903afd0471c5cd0d95628439}{size}};}
\DoxyCodeLine{00039\ \ \ \ \ \textcolor{keywordtype}{string}\ \mbox{\hyperlink{struct_qore_1_1_dir_stat_info_a0cdf5dc6f82d812af5c1ef413b5d408a}{type}};}
\DoxyCodeLine{00041\ \ \ \ \ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{struct_qore_1_1_dir_stat_info_acc439a437f7ffba94e2a8dc6155511cb}{uid}};}
\DoxyCodeLine{00042\ \};}
\DoxyCodeLine{00043\ \}}
\DoxyCodeLine{00044\ }
\DoxyCodeLine{00046\ \textcolor{keyword}{namespace\ }\mbox{\hyperlink{namespace_qore}{Qore}}\ \{}
\DoxyCodeLine{00048\ }
\DoxyCodeLine{00057\ \textcolor{keyword}{class\ }\mbox{\hyperlink{class_qore_1_1_dir}{Dir}}\ \{}
\DoxyCodeLine{00058\ }
\DoxyCodeLine{00059\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00061\ }
\DoxyCodeLine{00078\ \textcolor{keywordtype}{bool}\ \mbox{\hyperlink{class_qore_1_1_dir_a636f28d93d03ba82553b53d57c8c6978}{chdir}}(\textcolor{keywordtype}{string}\ \mbox{\hyperlink{class_qore_1_1_dir_ab732cb0fca5e4d8f297bd70f1f5c141d}{path}});}
\DoxyCodeLine{00079\ }
\DoxyCodeLine{00080\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00082\ }
\DoxyCodeLine{00099\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{nothing}}\ \mbox{\hyperlink{class_qore_1_1_dir_a2d7d2c165f79c44a32e3070bf72ab738}{chgrp}}(\textcolor{keywordtype}{int}\ gid);}
\DoxyCodeLine{00100\ }
\DoxyCodeLine{00101\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00103\ }
\DoxyCodeLine{00121\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{nothing}}\ \mbox{\hyperlink{class_qore_1_1_dir_ac74826b6a80ff676c416cd3952f19cf0}{chgrp}}(\textcolor{keywordtype}{string}\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{groupname}});}
\DoxyCodeLine{00122\ }
\DoxyCodeLine{00123\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00125\ }
\DoxyCodeLine{00139\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{nothing}}\ \mbox{\hyperlink{class_qore_1_1_dir_abe1d5f94d8397ed73190c724dbddfc6a}{chmod}}(\mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{softint}}\ mode);}
\DoxyCodeLine{00140\ }
\DoxyCodeLine{00141\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00143\ }
\DoxyCodeLine{00160\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{nothing}}\ \mbox{\hyperlink{class_qore_1_1_dir_a988c79eaccbcce08aa6c01f1484be269}{chown}}(\textcolor{keywordtype}{int}\ uid);}
\DoxyCodeLine{00161\ }
\DoxyCodeLine{00162\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00164\ }
\DoxyCodeLine{00182\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{nothing}}\ \mbox{\hyperlink{class_qore_1_1_dir_a0e2c563864f858fba878a06f7500e3c8}{chown}}(\textcolor{keywordtype}{string}\ username);}
\DoxyCodeLine{00183\ }
\DoxyCodeLine{00184\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00186\ }
\DoxyCodeLine{00195\ \ \mbox{\hyperlink{class_qore_1_1_dir_a860319e60133b9a45b4c342810c3b228}{constructor}}(\mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{\_\_7\_}}\ \textcolor{keywordtype}{string}\ encoding);}
\DoxyCodeLine{00196\ }
\DoxyCodeLine{00197\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00199\ }
\DoxyCodeLine{00204\ \ \mbox{\hyperlink{class_qore_1_1_dir_aed446bcffd8d04f98811513ef3f430f0}{copy}}();}
\DoxyCodeLine{00205\ }
\DoxyCodeLine{00206\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00208\ }
\DoxyCodeLine{00226\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{class_qore_1_1_dir_a9e9f05c88ac58cdbf027f8f4d8bcdc40}{create}}(\mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{softint}}\ mode\ =\ 0777);}
\DoxyCodeLine{00227\ }
\DoxyCodeLine{00228\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00230\ }
\DoxyCodeLine{00238\ \textcolor{keywordtype}{bool}\ \mbox{\hyperlink{class_qore_1_1_dir_a668096fd0b362cf2882a4e7c50b41118}{exists}}();}
\DoxyCodeLine{00239\ }
\DoxyCodeLine{00240\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00242\ }
\DoxyCodeLine{00258\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{hash<StatInfo>}}\ \mbox{\hyperlink{class_qore_1_1_dir_ab2ce53e16b1b2eb0d9ebd58fa3390fda}{hstat}}();}
\DoxyCodeLine{00259\ }
\DoxyCodeLine{00260\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00262\ }
\DoxyCodeLine{00282\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{list<auto>}}\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{list}}(\textcolor{keywordtype}{bool}\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{full}}\ =\ \mbox{\hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}});}
\DoxyCodeLine{00283\ }
\DoxyCodeLine{00284\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00286\ }
\DoxyCodeLine{00312\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{list<auto>}}\ \mbox{\hyperlink{class_qore_1_1_dir_a913c94307c40f8e3961c1eb58aac0bee}{list}}(\textcolor{keywordtype}{string}\ \mbox{\hyperlink{group__string__functions_gab17427299ed00ee52d90beadc55ba608}{regex}},\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{softint}}\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{regex\_options}}\ =\ 0,\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{softbool}}\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{full}}\ =\ \mbox{\hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}});}
\DoxyCodeLine{00313\ }
\DoxyCodeLine{00314\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00316\ }
\DoxyCodeLine{00338\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{list<auto>}}\ \mbox{\hyperlink{class_qore_1_1_dir_ad763dde419120489d4946ce95988ff10}{listDirs}}(\textcolor{keywordtype}{bool}\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{full}}\ =\ \mbox{\hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}});}
\DoxyCodeLine{00339\ }
\DoxyCodeLine{00340\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00342\ }
\DoxyCodeLine{00368\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{list<auto>}}\ \mbox{\hyperlink{class_qore_1_1_dir_a691b08165a76ef55473e262673c55ff4}{listDirs}}(\textcolor{keywordtype}{string}\ \mbox{\hyperlink{group__string__functions_gab17427299ed00ee52d90beadc55ba608}{regex}},\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{softint}}\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{regex\_options}}\ =\ 0,\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{softbool}}\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{full}}\ =\ \mbox{\hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}});}
\DoxyCodeLine{00369\ }
\DoxyCodeLine{00370\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00372\ }
\DoxyCodeLine{00394\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{list<auto>}}\ \mbox{\hyperlink{class_qore_1_1_dir_a4663ec9519c97b1dcced1c8684b9e2c9}{listFiles}}(\textcolor{keywordtype}{bool}\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{full}}\ =\ \mbox{\hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}});}
\DoxyCodeLine{00395\ }
\DoxyCodeLine{00396\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00398\ }
\DoxyCodeLine{00424\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{list<auto>}}\ \mbox{\hyperlink{class_qore_1_1_dir_a202e6dda1c75f0034ecd58b49348d9e9}{listFiles}}(\textcolor{keywordtype}{string}\ \mbox{\hyperlink{group__string__functions_gab17427299ed00ee52d90beadc55ba608}{regex}},\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{softint}}\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{regex\_options}}\ =\ 0,\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{softbool}}\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{full}}\ =\ \mbox{\hyperlink{group__boolean__constants_ga9da2b9a8003cd3788e48305f8a00540f}{False}});}
\DoxyCodeLine{00425\ }
\DoxyCodeLine{00426\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00428\ }
\DoxyCodeLine{00443\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{nothing}}\ \mbox{\hyperlink{class_qore_1_1_dir_adfeb093180181e6f4df3dad56e0101d9}{mkdir}}(\textcolor{keywordtype}{string}\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{subdir}},\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{softint}}\ mode\ =\ 0777);}
\DoxyCodeLine{00444\ }
\DoxyCodeLine{00445\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00447\ }
\DoxyCodeLine{00459\ \mbox{\hyperlink{class_qore_1_1_dir}{Dir}}\ \mbox{\hyperlink{class_qore_1_1_dir_a3f85f9096e3fcc143e738982e5594ac2}{openDir}}(\textcolor{keywordtype}{string}\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{subdir}},\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{\_\_7\_}}\ \textcolor{keywordtype}{string}\ encoding);}
\DoxyCodeLine{00460\ }
\DoxyCodeLine{00461\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00463\ }
\DoxyCodeLine{00480\ \mbox{\hyperlink{class_qore_1_1_file}{File}}\ \mbox{\hyperlink{class_qore_1_1_dir_a11575c0b4bc1d08c423af79b3be908d6}{openFile}}(\textcolor{keywordtype}{string}\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{filename}},\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{flags}}\ =\ \mbox{\hyperlink{group__file__open__constants_ga1ab351549a0b39d1492dc0a48d199f64}{O\_RDONLY}},\ \textcolor{keywordtype}{int}\ mode\ =\ 0666,\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{\_\_7\_}}\ \textcolor{keywordtype}{string}\ encoding);}
\DoxyCodeLine{00481\ }
\DoxyCodeLine{00482\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00484\ }
\DoxyCodeLine{00493\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{\_\_7\_}}\ \textcolor{keywordtype}{string}\ \mbox{\hyperlink{class_qore_1_1_dir_ab732cb0fca5e4d8f297bd70f1f5c141d}{path}}();}
\DoxyCodeLine{00494\ }
\DoxyCodeLine{00495\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00497\ }
\DoxyCodeLine{00515\ \textcolor{keywordtype}{bool}\ \mbox{\hyperlink{class_qore_1_1_dir_a39555d1901ed0f7d0084803291e2afac}{removeFile}}(\textcolor{keywordtype}{string}\ file);}
\DoxyCodeLine{00516\ }
\DoxyCodeLine{00517\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00519\ }
\DoxyCodeLine{00535\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{nothing}}\ \mbox{\hyperlink{class_qore_1_1_dir_a3bccdd964feba716bd0fd16347db1bb2}{rmdir}}(\textcolor{keywordtype}{string}\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{subdir}});}
\DoxyCodeLine{00536\ }
\DoxyCodeLine{00537\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00539\ }
\DoxyCodeLine{00555\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{list<auto>}}\ \mbox{\hyperlink{class_qore_1_1_dir_a11b931a16c7f38c2d84b346407cd0b3d}{stat}}();}
\DoxyCodeLine{00556\ }
\DoxyCodeLine{00557\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00559\ }
\DoxyCodeLine{00576\ \mbox{\hyperlink{class_qore_1_1_dir_a97250fb0ce462e70d8bc81ca4228d9ab}{hash<FilesystemInfo>}}\ \mbox{\hyperlink{class_qore_1_1_dir_a5590f1b597ef9388cf178fd43ae03200}{statvfs}}();}
\DoxyCodeLine{00577\ \};}
\DoxyCodeLine{00578\ \}}

\end{DoxyCode}
