1
0
mirror of https://github.com/sismics/docs.git synced 2025-12-15 18:56:18 +00:00

file importer

This commit is contained in:
Benjamin Gamard
2018-03-01 12:28:29 +01:00
parent cc6e1b4052
commit f70cded634
4 changed files with 124 additions and 8 deletions

22
docs-importer/README.md Normal file
View File

@@ -0,0 +1,22 @@
File Importer
=============
This tool can be used to do a single import of files or to periodically scan for files in an input folder.
Requirements
------------
- NodeJS 9
- NPM
Usage
-----
```console
npm install
node main.js
```
A wizard will ask you for the import configuration and write it in `~/.config/preferences/com.sismics.docs.importer.pref`
Daemon mode
-----------
The daemon mode scan the input directory every 30 seconds for new files. Once a file is found and imported, it is **deleted**.