Skip to content

Commit 49ea752

Browse files
some comments
1 parent 26823fc commit 49ea752

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/date_extractors/json_extractor.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ Future<File?> _jsonForFile(File file, {required bool tryhard}) async {
5555
return null;
5656
}
5757

58-
// if the original file was uploaded without an extension there will be no
59-
// extension in the "title" of the json but the image in the filesystem will
60-
// have one that was automatically added, hence we need to ignore it when
61-
// searching for the json
58+
// if the originally file was uploaded without an extension,
59+
// (for example, "20030616" (jpg but without ext))
60+
// it's json won't have the extension ("20030616.json"), but the image
61+
// itself (after google proccessed it) - will ("20030616.jpg" tadam)
6262
String _noExtension(String filename) =>
6363
p.basenameWithoutExtension(File(filename).path);
6464

0 commit comments

Comments
 (0)