| 76 | } |
| 77 | |
| 78 | String humanReadableSize(uint64_t bytes) { |
| 79 | if (bytes < 1024) return String(bytes) + " B"; |
| 80 | else if (bytes < (1024 * 1024)) return String(bytes / 1024.0) + " kB"; |
| 81 | else if (bytes < (1024 * 1024 * 1024)) return String(bytes / 1024.0 / 1024.0) + " MB"; |
| 82 | else return String(bytes / 1024.0 / 1024.0 / 1024.0) + " GB"; |
| 83 | } |
| 84 | |
| 85 | String listFiles(String folder) { |
| 86 | String returnText = "pa:" + folder + ":0\n"; |
no outgoing calls
no test coverage detected