** Function name: copyFile ** Description: copy file address to memory ***************************************************************************************/
| 256 | ** Description: copy file address to memory |
| 257 | ***************************************************************************************/ |
| 258 | bool copyFile(FS fs, String path) { |
| 259 | File file = fs.open(path, FILE_READ); |
| 260 | if (!file.isDirectory()) { |
| 261 | fileToCopy = path; |
| 262 | file.close(); |
| 263 | return true; |
| 264 | } else { |
| 265 | displayRedStripe("Cannot copy Folder"); |
| 266 | file.close(); |
| 267 | return false; |
| 268 | } |
| 269 | } |
| 270 | |
| 271 | /*************************************************************************************** |
| 272 | ** Function name: pasteFile |
no test coverage detected