Skip to content

Instantly share code, notes, and snippets.

@mmanflori
Created May 11, 2021 21:59
import 'dart:io';
FileStat f1;
File file2;
String pfad2 = 'E:\\Test\\DartTest\\zwecktest.txt';
DateTime date;
DateTime date2;
void main(List<String> arguments) {
FileSystemEntity.isFileSync(pfad2);
file2 = File(pfad2);
f1 = file2.statSync();
print(f1.accessed);
print(f1.changed);
print(f1.modified);
date = file2.lastAccessedSync();
date2 = file2.lastModifiedSync();
print(date);
print(date2);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment