Ironholds / exif

Read exif data into R
Other
10 stars 3 forks source link

ungraceful error when one of many files fails #6

Open stevetnz opened 6 years ago

stevetnz commented 6 years ago

When read_exif() is given a long vector of file names, and just one of them fails, the whole result is lost with an error message "Can't parse information in file".
Could you create a row of NA values instead and continue processing the files?

PS, it would be useful if the original file names were included in the output, perhaps as rownames or as the first column. Then you could exclude files that failed, returning info on files for which EXIF data were found.