Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > pl.comp.os.linux.programowanie > #2086
| From | Borneq <borneq@antyspam.hidden.pl> |
|---|---|
| Newsgroups | pl.comp.os.linux.programowanie |
| Subject | Re: Jak pobierać czas modyfikacji pliku? |
| Date | 2017-01-18 16:12 +0100 |
| Organization | ATMAN - ATM S.A. |
| Message-ID | <o5o0l1$qt5$1@node2.news.atman.pl> (permalink) |
| References | <o5nupk$p7v$1@node2.news.atman.pl> |
W dniu 18.01.2017 o 15:41, Borneq pisze:
> printf("%s\n",ent->d_name);
struct stat st;
za pomocą stat, tylko trzeba podać całą ścieżkę
int ierr = stat((folder + "/" + string(ent->d_name)).c_str(), &st);
if (ierr != 0) {
cout << "error";
}
__time_t date = st.st_mtime;
Back to pl.comp.os.linux.programowanie | Previous | Next — Previous in thread | Find similar
Jak pobierać czas modyfikacji pliku? Borneq <borneq@antyspam.hidden.pl> - 2017-01-18 15:41 +0100 Re: Jak pobierać czas modyfikacji pliku? Borneq <borneq@antyspam.hidden.pl> - 2017-01-18 16:12 +0100
csiph-web