Timestamp of files in a folder.
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Kent,et
am 13 Jan. 2015
Kommentiert: supernoob
am 2 Okt. 2018
Hi,
I have a a given number, nb, of file in a folder, how can I extract the timestamp of every file in the folder? What's the easiest way to do it? Filenames are such as filename_001 to filename_nb.
D = finename); TimeStamp = {D.datenum}; enables to extract the data of a file.
Many thanks,
Kent
0 Kommentare
Akzeptierte Antwort
Guillaume
am 13 Jan. 2015
Matlab's dir command returns the modification date of the files as one of the field of its output structure.
d = dir(fullfile(foldername, 'filename_*');
struct2table(d); %or whatever you want to do with the structure
0 Kommentare
Siehe auch
Kategorien
Mehr zu File Operations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!