ofs | hex dump | ascii |
---|
0000 | 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 00 80 00 00 00 80 08 06 00 00 00 c3 3e 61 | .PNG........IHDR..............>a |
0020 | cb 00 00 00 06 62 4b 47 44 00 ff 00 ff 00 ff a0 bd a7 93 00 00 00 09 70 48 59 73 00 00 0b 13 00 | .....bKGD..............pHYs..... |
0040 | 00 0b 13 01 00 9a 9c 18 00 00 00 07 74 49 4d 45 07 e1 03 08 14 2d 29 ea 6f f9 97 00 00 1b 99 49 | ............tIME.....-).o......I |
0060 | 44 41 54 78 da ed 5d cb 8e 24 49 56 3d f6 70 73 f7 78 66 56 66 65 57 d1 33 d3 b3 00 06 89 05 4b | DATx..]..$IV=.ps.xfVfeW.3......K |
0080 | 58 b0 43 e2 13 10 12 3b d6 48 fc 09 2b d6 6c d8 f3 01 48 7c 04 ab d1 08 d4 82 ae ee 7a e6 33 1e | X.C....;.H..+.l...H|........z.3. |
00a0 | fe 36 33 16 c7 3c 3d 1f 91 11 91 39 33 15 11 c8 4d 2a 75 b4 65 b8 87 b9 9b d9 b5 7b cf bd e7 5e | .63..<=....93...M*u.e......{...^ |
00c0 | 81 27 da df fe 51 ec 6b 2b e0 9b 06 4a 02 16 1e 12 80 8e 34 ee f6 ff e3 bf fe c7 53 b7 c0 3f fd | .'...Q.k+...J......4.......S..?. |
00e0 | dd 5f ad bd f6 61 bf ab 1a 40 01 c2 7b 28 01 58 a9 01 6b 9f 75 8f 55 fd ff f0 2f ff 8e 75 ed 9f | ._...a...@..{(.X..k.u.U.../..u.. |
0100 | ff fe af 5f 34 ae 7f fb a1 11 f8 8a ed cf 4f e0 2f 6e 50 fd ea 17 80 56 c0 fb 1b a0 68 80 9f 4f | ..._4.........O./nP....V....h..O |
0120 | 81 ff 7c 07 fc c5 1f 02 d6 03 8b 1c f8 fe 47 e0 ec 18 f8 d9 19 70 9d 01 df 5f 00 7f f6 16 f8 f1 | ..|...........G......p..._...... |
0140 | 8a d7 fc f1 5b a0 ae 61 e4 53 3f b6 28 01 ef f8 43 71 0c f8 06 b0 ee 71 ff ba b6 e9 da 87 fd 42 | ....[..a.S?.(...Cq.....q.......B |
0160 | 02 5a 00 0e 1c a4 d1 cf bf c7 aa fe 4d ed a5 e3 fa da ed ec 08 98 8e 60 9a 06 46 78 98 37 63 18 | .Z..........M..........`..Fx.7c. |
0180 | ed 60 6c 03 f3 ed 14 c6 59 98 3c 87 49 35 cc eb 63 18 13 c1 94 25 cc 24 86 79 15 c1 64 25 cc 40 | .`l.....Y.<.I5..c....%.$.y..d%.@ |
01a0 | c3 9c 0c 60 ca 02 a6 ac 00 fd d4 8f c5 90 88 94 00 9c 44 99 03 a9 06 84 f0 28 ec fd fe 75 4d 62 | ...`..............D......(...uMb |
01c0 | fd b5 0f fb 2b 17 ae 93 80 96 2f bb c7 aa fe 4d 6d d3 b3 3e 35 ae af dd 92 08 50 0a 28 6b 8e 25 | ....+...../....Mm..>5.....P.(k.% |
01e0 | d6 40 96 01 e7 1e 58 16 40 55 00 b1 01 de bc 02 e2 88 d7 64 25 30 51 80 6b 80 2f d7 5c d8 75 0d | .@....X.@U.........d%0Q.k./.\.u. |
0200 | cc 0d 30 1e ae 59 00 51 cc 55 6f 9d 47 64 24 84 77 88 a5 80 d5 f7 fb d7 35 81 f5 d7 3e ec 77 0e | ..0..Y.Q.Uo.Gd$.w.......5...>.w. |
0220 | 30 06 58 2e 01 2b 81 a2 04 c6 ea 79 f7 58 d5 bf a9 6d 7a d6 a7 c6 b5 8b 26 05 30 1a 00 69 04 58 | 0.X..+.....y.X...mz.....&.0..i.X |
0240 | 0b 0c 53 e0 78 0a 0c 12 60 9c 06 29 66 00 bf e0 22 98 0e b9 68 b5 06 a6 63 20 9c 66 18 24 5c 4c | ..S.x...`..)f..."...h...c..f.$\L |
0260 | 4f cf a0 17 70 0d e0 2d e0 ad 87 73 12 f3 4a 3c ea 5f d7 36 5d fb b0 9f bb 5d 22 d5 0a 03 25 11 | O...p..-...s..J<._.6]....]"...%. |
0280 | 43 3e fb 1e ab fa 37 b6 17 8e eb ab 37 0f 08 c1 23 28 36 80 07 27 71 92 52 2a 64 25 20 00 24 a6 | C>....7.....7...#(6..'q.R*d%..$. |
02a0 | 93 58 89 e1 77 9c 07 8e 46 40 a4 82 b4 a8 80 c9 60 8d 04 48 95 80 55 12 8d 6f 60 e2 18 56 69 e8 | .X..w...F@......`..H..U..o`..Vi. |
02c0 | ba 84 16 f7 fb d7 ae 56 25 d6 5e fb b0 bf ae ea 47 3b 50 36 cf bb c7 aa fe 4d 6d d3 b3 3e 35 ae | .......V%.^.....G;P6.....Mm..>5. |
02e0 | 5d 34 e7 b8 8b a5 e0 64 bb a0 a3 d4 0d 90 8c c2 ae 16 80 f7 14 f7 45 45 09 60 2d 17 8f f7 fc 17 | ]4.....d..............EE.`-..... |
0300 | 69 f6 3f 29 01 aa 46 40 58 0f 29 80 34 72 50 79 01 e5 1e f7 6f 12 57 eb ae 7d d8 bf 6a 07 3e f7 | i.?)..F@X.).4rPy....o.W..}..j.>. |
0320 | 1e ab fa 37 b5 97 8e 6b 27 4d f0 bd aa a0 94 5a c7 c9 b7 8e 3b 7c 94 72 82 c3 57 b9 50 04 ad 83 | ...7...k'M.....Z....;|.r..W.P... |
0340 | 76 f1 c4 11 70 3c 61 ff 93 12 40 a9 08 c2 d5 68 3c 50 96 0a 4a f1 02 87 fb fd eb da a6 6b 1f f6 | v...p<a...@....h<P..J........k.. |
0360 | af 92 18 b9 7d de 3d 56 f5 6f 6a 9b 9e f5 a9 71 ed a2 29 41 65 d0 44 40 e3 80 44 73 c2 95 e4 3f | ....}.=V.oj....q..)Ae.D@..Ds...? |
0380 | 21 b8 20 84 e0 b9 9f c6 9c f8 24 e2 82 40 38 36 b4 04 ca 6a 8d 04 b0 b6 86 07 95 a0 38 b6 b0 d6 | !.........$..@86...j........8... |
03a0 | a1 71 fe 51 ff 5a 33 70 c3 b5 0f fb 57 ed c0 e7 de 63 55 ff a6 f6 d2 71 ed aa 49 49 5b 5f 78 20 | .q.Q.Z3p....W....cU....q..II[_x. |
03c0 | 8a 38 f1 83 84 3b bb b1 40 d3 50 3f 68 45 7e 56 f2 6f ce 53 27 18 c4 fc 5b 59 af 59 00 4a 45 10 | .8...;..@.P?hE~V.o.S'...[Y.Y.JE. |
03e0 |
bool PathExists(const std::string &path);
bool IsPathAbsolute(const std::string &path);
bool IsDir(const std::string &path);
bool IsDirDelimiter(char c);
// Only pass full paths to this one. True on success.
// NOTE: The WIN32 version returns always true.
bool RecursiveDelete(const std::string &path);
bool DeleteSingleFileOrEmptyDirectory(const std::string &path);
// Returns path to temp directory, can return "" on error
std::string TempPath();
/* Multiplatform */
// The path itself not included
void GetRecursiveSubPaths(const std::string &path, std::vector<std::string> &dst);
// Tries to delete all, returns false if any failed
bool DeletePaths(const std::vector<std::string> &paths);
// Only pass full paths to this one. True on success.
bool RecursiveDeleteContent(const std::string &path);
// Create all directories on the given path that don't already exist.
bool CreateAllDirs(const std::string &path);
// Copy a regular file
bool CopyFileContents(const std::string &source, const std::string &target);
// Copy directory and all subdirectories
// Omits files and subdirectories that start with a period
bool CopyDir(const std::string &source, const std::string &target);
// Check if one path is prefix of another
// For example, "/tmp" is a prefix of "/tmp" and "/tmp/file" but not "/tmp2"
// Ignores case differences and '/' vs. '\\' on Windows
bool PathStartsWith(const std::string &path, const std::string &prefix);
// Remove last path component and the dir delimiter before and/or after it,
// returns "" if there is only one path component.
// removed: If non-NULL, receives the removed component(s).
// count: Number of components to remove
std::string RemoveLastPathComponent(const std::string &path,
std::string *removed = NULL, int count = 1);
// Remove "." and ".." path components and for every ".." removed, remove
// the last normal path component before it. Unlike AbsolutePath,
// this does not resolve symlinks and check for existence of directories.
std::string RemoveRelativePathComponents(std::string path);
// Returns the absolute path for the passed path, with "." and ".." pat 2e 16 40 5e 01 | .4n?..5.v{#W.<.....ZT[../....@^. |
0840 | 52 1b 68 e1 70 a2 2d 15 b9 e0 20 2a 2b e2 fe 91 06 6a 0b 94 8d 44 e5 0d 3c 2a a4 86 48 67 a4 b9 | R.h.p.-....*+....j...D..<*..Hg.. |
0860 | 59 96 79 38 22 d6 81 38 91 7e ac 6c 3d 74 8c 6c e3 66 f5 cd d3 ae e1 bb 9f 5f 99 06 a3 c4 43 80 | Y.y8"..8.~.l=t.l.f......._....C. |
0880 | bb dd 6b f3 e8 f7 b7 1d 57 7b cf 38 dd fc 62 5f 3a ae dd 1c 01 02 6f 5f c7 88 8d c2 fb 73 0f e7 | ..k.....W{.8..b_:.....o_.....s.. |
08a0 | a8 17 44 1a b8 5a 02 9f ae 08 0b 2b 05 4c 46 02 6f ce 12 cc 96 c0 a2 08 31 01 41 37 f8 74 0d 5c | ..D..Z.....+.LF.o.......1.A7.t.\ |
08c0 | ce d7 48 80 16 c4 79 08 e0 3c 74 99 6e e3 66 15 f2 69 d7 b0 96 e2 f6 f3 43 d3 ae aa 1d 62 b1 1a | ..H...y..<t.n.f..i......C....b.. |
08e0 | e0 d9 34 ae f6 9e 5b 29 81 2f 1c d7 6e 50 40 0f ed 97 d0 34 48 90 57 01 6c cb 80 ef ce 82 83 27 | ..4...[)./..nP@....4H.W.l......' |
0900 | 04 8b 28 e1 60 dc 1c 42 78 94 35 9d 47 b3 8c d2 e2 cd 09 8f 09 bd ce 0a a8 2d 95 9f bb ca d6 70 | ..(.`..Bx.5.G............-.....p |
0920 | 20 70 d3 54 b7 21 d4 6b cd c0 62 0e 25 79 3e 2d 2b 0b e8 f2 4e f8 7
} // namespace fs
#endif
|