Created
May 11, 2021 21:59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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