| 100 | } |
| 101 | |
| 102 | u64 fileSize(const std::string& path) |
| 103 | { |
| 104 | struct stat st; |
| 105 | if (stat(path.c_str(), &st) != 0) { |
| 106 | return 0; |
| 107 | } |
| 108 | return (u64)st.st_size; |
| 109 | } |
| 110 | |
| 111 | // Returns false if any regular file exceeds the store-zip entry limit; such a |
| 112 | // file cannot be framed (no zip64) and the whole send must refuse rather than |