Required Software and APIs
See also:
Required software discussion
APIs used when syncing to remote targets (only works between Linux machines):
- Parsing filetree (Listing files)
- Run via a temporary uploaded python script on the remote side*
- Moving (renaming) file
- Run via a temporary uploaded python script on the remote side*
- Copying file
- uses rsync with the "--files-from" option. (also using "-e ssh" option) (see source code for the exact command)
- Remove file
- Run via a temporary uploaded python script on the remote side*
- Remove folder
- Run via a temporary uploaded python script on the remote side*
- Create folder
- Run via a temporary uploaded python script on the remote side*
- realpath (converting fiPath to fsPath)
- ssh ... realpath (So it should be subject to the special-character issue (but it is only used for database-file, filter-file etc))
*A python script is uploaded to the host (to the /tmp folder) (when clicking T2T>Compare or T2T>Sync).
APIs used when syncing to local targets:
- Parsing filetree (Listing files)
- Windows: python
- Other: python
- Moving (renaming) file
- Windows: fs.promises.rename
- Other: fs.promises.rename
- Copy file:
- Windows: copy /l (one entry per call)
- Other: cp (one entry per call)
- Remove file
- Windows: del (one entry per call)
- Other: rm (multiple entries in one call)
- Remove folder
- Windows: rmdir (one entry per call)
- Other: rmdir (multiple entries in one call)
- Create folder
- Windows: mkdir -p (multiple entries in one call)
- Other: mkdir (multiple entries in one call)
- realpath (converting fiPath to fsPath)
- Windows: fs.realpath.native
- Other: realpath
- Calculate md5 hashcode
- Windows; certutil -hashfile
- Other: md5sum
- Open (txt-) files or folders in default program
- Windows: start
- Other: xdg-open
- Comparing files
- Windows: meld
- Other: meld
- Getting metadata from a single file (not used when parsing tree)
- Windows: fs.promises.lstat(fsFile) (only 3 decimal timestamp)
- Other: fs.promises.lstat(fsFile) (only 3 decimal timestamp)
- or using stat (Bash) (9 decimal timestamp)