JosJuice 5ca3aee00a FileUtil: Add a class for Exists/IsDirectory/GetSize
Some code was calling more than one of these functions in a row
(in particular, FileUtil.cpp itself did it a lot...), which is
a waste since it's possible to call stat a single time and then
read all three values from the stat struct. This commit adds a
File::FileInfo class that calls stat once on construction and
then lets Exists/IsDirectory/GetSize be executed very quickly.

The performance improvement mostly matters for functions that
can be handling a lot of files, such as File::ScanDirectoryTree.

I've also done some cleanup in code that uses these functions.
For instance, some code had checks like !Exists() || !IsDirectory(),
which is functionally equivalent to !IsDirectory(), and some
code was using File::GetSize even though there was an IOFile
object that the code could call GetSize on.
2017-06-29 19:07:29 +02:00
..
2016-12-06 20:33:53 +01:00
2017-05-03 08:02:35 +01:00
2017-05-03 08:02:35 +01:00
2017-03-23 15:28:58 -04:00
2015-05-25 13:11:47 +02:00
2017-06-15 21:26:40 -07:00
2017-05-19 19:13:16 +02:00
2017-06-17 02:16:58 +01:00
2017-06-15 21:33:50 +02:00
2017-05-03 06:40:52 +01:00
2017-05-03 06:40:52 +01:00
2017-06-15 21:34:04 +02:00
2017-06-15 21:33:50 +02:00
2017-04-12 06:15:18 +01:00
2016-07-16 22:48:46 +02:00
2017-06-15 21:33:50 +02:00
2017-01-17 20:46:48 -05:00
2017-01-17 20:46:48 -05:00
2017-06-15 21:33:50 +02:00
2017-06-15 21:33:50 +02:00
2017-06-15 21:33:50 +02:00
2017-06-18 16:17:05 +02:00
2017-01-24 03:31:51 +01:00