Commit Graph

8 Commits

Author SHA1 Message Date
Dietrich Epp 2768a0c856 Add plain text and XML files to filter list
GitOrigin-RevId: 2c5ded355b43463d20e6e9e65c32a6c566df82a7
2021-03-26 03:47:55 -04:00
Dietrich Epp 4d82709bd4 Implement resource file handling
This was previously implemented, but lost. The previous implementation
was probably destroyed when testing this tool.

GitOrigin-RevId: e1a41fc5290e57510c252c8404db86afa1913eba
2021-03-26 03:47:55 -04:00
Dietrich Epp 03ae6a672d Refactor: Pass conversion mode to file converter
This is preparation for the resource fork converter.

GitOrigin-RevId: b50299047964e2d6d4a8b6ce3178639ac23f8d50
2021-03-24 04:20:46 -04:00
Dietrich Epp 910039b77a Convert files incrementally
The previous implementation read the entire file into memory and then
processed it. This version uses reasonably-sized buffers and can handle
files of any size.

Since this new conversion code is a bit more complicated, a test suite
has been added which can be run on ordinary Unix systems.

GitOrigin-RevId: acc7be277103fad1da2d0ca16d1a84be11802fbf
2021-03-24 04:20:45 -04:00
Dietrich Epp 28e378fffb Fix incorrect types for vRefNum and parID
GitOrigin-RevId: 04b016cb9a491a9c6ffc5f1e4df0bdc49f349ecb
2021-03-17 21:05:18 -04:00
Dietrich Epp a13293fc92 Only move and rename as necessary
GitOrigin-RevId: e3af6ccfdfa3fdb840b745afd225f270ea6c4070
2021-03-17 21:05:18 -04:00
Dietrich Epp ff6149d125 Handle case where temporary file exists
GitOrigin-RevId: 029ce369a00c5f18bc50174eb4fde677b4984f1b
2021-03-17 21:05:17 -04:00
Dietrich Epp 4e0d9b16c7 Refactor SyncFiles
- Split into multiple source files
- Create new file action enum
- Push or pull must be explicit

GitOrigin-RevId: c6ccd85f1452a1333a1deb3495792451a0b8f860
2021-03-17 21:05:17 -04:00