用于东芝FlashAir SD卡(用于3D打印机)的简单目录同步器。

flashair_sync的Python项目详细描述


闪光灯同步

东芝FlashAir SD卡的简单单向目录同步器,用于3D打印机。

安装

$ pip install flashair_sync

or under Windows:

C:\>py -m pip install flashair_sync

示例用法

$ flashair_sync /directory/with/x3g_files 192.168.178.70 x3g s3g

or under Windows:

$ py flashair_sync c:\directory\with\x3g_files 192.168.178.70 x3g s3g

If you want to do an initial sycn to the card, add the -i switch.

–帮助输出

usage: flashair_sync [-h] [-p POLL_INTERVAL] [-i]
                   directory_path flashair_address file_extensions
                   [file_extensions ...]

Watch a directory for change/delete events to files and sync to flashair card
(not recursive!).

positional arguments:
  directory_path        The directory to watch for changes.
  flashair_address      The address of your flashair card, eg.
                        "192.168.178.41"
  file_extensions       Only files that match one of these extensions get
                        monitored.

optional arguments:
  -h, --help            show this help message and exit
  -p POLL_INTERVAL, --poll_interval POLL_INTERVAL
                        How many seconds between directory polls (default is 1).
  -i, --initial_sync    Copy all files that are new or changed to the card on
                        program start, also delete all files on the card which
                        are not in the current directory.  Without this switch
                        only files that are new/modified/deleted after the
                        program start are synced.

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java Intellij通过方法中的包查找用法   java中VS代码和打包命名的问题   将java CMS功能集成到具有高度动态内容的网站(Lucene/Mysql/Nosql)的策略   oracle的java类强制转换异常。jdbc。驾驶员OracleConnection   字节码向JVM添加上指令   如何在抽象类中执行java方法?   java是否可以在apache访问日志中排除指定的GET参数?(作者:W7开发环境)   java如何获取已安装音频播放器的列表?   尝试向HS学生展示如何使用Java访问MS数据库   使用正则表达式java对给定行中的特定字符串进行计数   java JOOQ Select查询中的Select计数   方法Java,如何从二维双精度数组中找到特定值?   获取图像URL的java正则表达式   java在切换到新的窗口驱动程序后找不到元素