To install the Filesystem Connector, follow the instructions below.
Before installing the connector,
- Disable firewalls and antivirus software if needed.
- Ensure you have administrative rights on the drive.
- Make sure your system has Python and can run the "pip" command.
- GIT needs to be installed
-
Check the system.
After you configure your system, you can check the version of python and pip to make sure it is installed on your system.python -V pip -V
If these don't work, see optional on this page: (Optional) Setup Python on Windows 8+
-
Install the Filesystem Connector.
If everything is set up correctly, you can use pip to install Enterprise's Filesystem Connector.pip install ltk
-
Run the Filesystem Connector. (For help and examples, click here).
ltk Usage: ltk [OPTIONS] COMMAND [ARGS]... Options: --version Show the version and exit. -q Will only show warnings -v Show API calls. Use -vv for API responses. --help Show this message and exit. Commands: add Adds content, could be one or multiple files specified by the Unix shell pattern clean Cleans up the associations between local documents and documents in Enterprise config view or change local configuration download downloads translated content of document(s) import import documents from Enterprise Cloud,... init connects a local project to Enterprise list shows docs, workflows, locales, or formats pull pulls all translations for added documents push Sends updated content to Enterprise for documents that have been added request Add targets to document(s) to start translation; defaults to the entire project rm Disassociate local doc(s) from Enterprise Cloud and deletes the remote copy status Gets the status of a specific document or all documents watch Watches local and remote files
(Optional)
You can get the connector directly from Github: https://github.com/Lingotek/filesystem-connector
Debugging
Permission denied error with watch
Example: PermissionError: [Errno 13] Permission denied: 'watch_dir/test.html'
If your system has antivirus auto protect activated, then you may encounter permission errors with specific file types. Make sure that your watch directory is excluded from auto protect.
Comments
0 comments
Please sign in to leave a comment.