Skip to main content

保留原始文件的文件系统。

项目描述

目录

  1. 介绍
  2. 安装
    1. 要求
    2. 安装
  3. 例子
    1. 运行 PreservedFS 示例
    2. 使用 PreservedFS 示例

介绍

PreservedFS是用户空间中的文件系统,旨在挂载文件夹,在挂载的文件夹内进行修改,同时保留原始文件。

为此,PreservedFS使用了三个文件夹:

  • targetroot:要挂载的文件夹
  • local:仅保留修改的文件夹target
  • mnt:您将浏览的文件夹,targetlocallocal.

安装

要求

您需要Python 2.3或更新安装。您还需要libfuse系统上的库(由所有主要 Linux 发行版提供)。

然后,安装它:

    pip install preservedfs

例子

example文件夹下的存储库中给出了一个示例。

运行 PreservedFS 示例

PreservedFS 带有一个命令行界面 (CLI)。所以一旦安装,你可以运行:

preservedfs ~/preservedfs/example/target ~/preservedfs/example/mnt ~/preservedfs/example/local

使用 PreservedFS 示例

然后,您可以浏览到PreservedFSexample/mnt挂载的文件夹。

您将看到文件夹内容example/targetexample/local.

如果您修改文件夹中的example/mnt文件(例如这个EXAMPLE.org),更改将被写入example/local并反映在其中,example/mnt但原始文件将被保留!

您可以通过在其中创建/删除文件来进行游戏example/mnt,看看它如何影响文件夹example/localexample/target.

项目详情


下载文件

下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。

源分布

reservedfs-0.1.5.tar.gz (31.4 kB 查看哈希

已上传 source

内置分布

reservedfs-0.1.5-py2.py3-none-any.whl (32.4 kB 查看哈希

已上传 py2 py3