Article View: pl.comp.os.linux.programowanie
Article #72815Jak pobierać czas modyfikacji pliku?
From: Borneq
Date: Wed, 18 Jan 2017 14:41
Date: Wed, 18 Jan 2017 14:41
23 lines
1278 bytes
1278 bytes
czytam
DIR *dir;
struct dirent *ent;
if ((dir = opendir(folder)) != NULL)
{
while ((ent = readdir(dir)) != NULL)
{
if (strncmp(ent->d_name, beginName, strlen(beginName)) == 0)
{
printf("%s\n",ent->d_name);
names.push_back(ent->d_name);
}
}
closedir(dir);
}
else
{
perror("");
exit(1);
}
ale mam same nazwy, bez wielkości i bez czasu modyfikacji
Technical Details
Message-ID:
<o5nupk$p7v$1@node2.news.atman.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail From: Borneq <borneq@antyspam.hidden.pl> Newsgroups: pl.comp.os.linux.programowanie Subject: Jak pobierać czas modyfikacji pliku? Date: Wed, 18 Jan 2017 15:41:04 +0100 Organization: ATMAN - ATM S.A. Lines: 23 Message-ID: <o5nupk$p7v$1@node2.news.atman.pl> NNTP-Posting-Host: 91.239.205.105 Mime-Version: 1.0 X-Trace: node2.news.atman.pl 1484750452 25855 91.239.205.105 (18 Jan 2017 14:40:52 GMT) X-Complaints-To: usenet@atman.pl NNTP-Posting-Date: Wed, 18 Jan 2017 14:40:52 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 X-Mozilla-News-Host: news://news.atman.pl:119 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit