WO2014117513A1 - Method and device for managing recycle bin of cloud storage - Google Patents

Method and device for managing recycle bin of cloud storage Download PDF

Info

Publication number
WO2014117513A1
WO2014117513A1 PCT/CN2013/082953 CN2013082953W WO2014117513A1 WO 2014117513 A1 WO2014117513 A1 WO 2014117513A1 CN 2013082953 W CN2013082953 W CN 2013082953W WO 2014117513 A1 WO2014117513 A1 WO 2014117513A1
Authority
WO
WIPO (PCT)
Prior art keywords
path
file
cloud storage
user
storage system
Prior art date
Application number
PCT/CN2013/082953
Other languages
French (fr)
Chinese (zh)
Inventor
薛晔
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2014117513A1 publication Critical patent/WO2014117513A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • G06F16/1824Distributed file systems implemented using Network-attached Storage [NAS] architecture
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Definitions

  • the method according to an embodiment of the present invention further comprising: storing the original path of the file as metadata of the file.
  • the method according to the embodiment of the present invention further comprising: moving the file to the second path by acquiring the first path and the second path and by using an API moving object function interface of the distributed cloud storage system; By using the API enumeration object function interface of the distributed cloud storage system, all the files including the files in the recycle bin space are displayed; the files are deleted by acquiring the function interface according to the second path and by using the API of the distributed cloud storage system.
  • the method according to an embodiment of the present invention further comprising: restoring the file to the original path by acquiring the second path and the original path and by using an API restore function interface of the distributed cloud storage system.
  • the first path of the user A is configured by using the user ID of the user A, that is, the user ID, and the first path of the configured user A is / Rest/namespace/UIDA/recycle/.
  • step S208 is performed. If the first path is detected, proceeding to step S208: configuring a second path corresponding to the file for the user.
  • the second path is the absolute path of the file in the Recycle Bin space.
  • the second path of file A that user A needs to delete can be configured as: /rest/namespace/UID A/recycle/pathA/fileA.
  • proceeding to step S210 moving the file to the second path.
  • FIG. 3 is a flowchart of a cloud storage recycling station management method for browsing a file.
  • Browse the content in the recycle bin space of the cloud storage receive the request to browse the recycle bin, in the step
  • the cloud storage reclaiming station may be emptied to obtain a second path of all files in the reclaiming space corresponding to the user, and the distributed cloud storage system API is used to delete the function interface. Empty the recycle bin space corresponding to the user. Further, the recycle bin of the cloud storage may be deleted, and the first path of the recycler space path corresponding to the user is obtained, and the function interface of the distributed cloud storage system API is deleted, and the recycle bin corresponding to the cloud storage of the user is deleted.
  • the configuration module 30 can be configured to configure a second path corresponding to the file for the user if the first path exists.
  • the configuration module 30 may be further configured to: if the first path does not exist, configure a first path corresponding to the user to which the file belongs in the recycle space of the cloud storage system, and configure a second path corresponding to the file for the user.
  • the configuration module 30 can also be configured to configure a first path corresponding to the user to which the file belongs in the recycle bin space of the cloud storage system using the user identification configuration in the user information.
  • the mobility module 40 can be configured to move the file to the second path by acquiring the first path and the second path and by using an API mobile object function interface of the distributed cloud storage system.

Abstract

The present invention provides a method and a device for managing a recycle bin of cloud storage. The method comprises: receiving a file deleting request for a file; detecting, based on user information in the file deleting request, whether a first path corresponding to a user to which the file belongs exists in a cloud storage system; if the first path exists, configuring a second path corresponding to the file for the user; and moving the file onto the second path. By means of the present invention, the recycle bin function of the cloud storage system can be better utilized to effectively improve user experience.

Description

一种云存储的回收站管理方法和装置 技术领域 本发明涉及云存储系统领域, 尤其涉及一种云存储的回收站管理方法和装置。 背景技术 随着科学技术的发展, 云存储技术得到广泛的应用, 更多的人开始使用云存储系 统对文件资源进行保存管理, 云存储系统中的功能也越来越丰富。 其中, 云存储的回 收站功能是一项用户频繁使用的功能。 但在现有技术中, 用于底层存储的 ATMOS设置不支持回收管理功能, 不能很好 地对云存储的回收站中的数据进行管理。 也就是说, 现有的技术中虽然有云存储的回收站功能, 但是不能对回收站中的数 据进行移动、 列举、 删除以及还原等操作, 满足不了用户进行云存储项目的需求, 达 不到一个好的用户体验效果。 综上所述, 现有技术中对于云存储的回收站中的数据不能进行很好的管理工作, 因此有必要提出改进的技术方案解决上述问题。 发明内容 针对上述缺陷,本发明的主要目的在于提供一种云存储的回收站管理方法和装置, 以解决现有技术存在的云存储的回收站管理困难的问题。 根据本发明的一个方面, 提供一种云存储的回收站管理方法, 该方法包括: 接收 针对文件的文件删除请求; 基于文件删除请求中的用户信息, 检测云存储系统中是否 存在与该文件所属用户对应的第一路径; 如果存在第一路径, 则为用户配置与文件对 应的第二路径; 以及将文件移动到第二路径下。 根据本发明实施例的方法, 还包括: 如果不存在第一路径, 则在云存储系统的回 收站空间中配置与该文件所属用户对应的第一路径, 并为用户配置与文件对应的第二 路径。 根据本发明实施例的方法, 在云存储系统的回收站空间中配置与该文件所属用户 对应的第一路径的步骤包括: 使用用户信息中的用户标识配置在云存储系统的回收站 空间中配置与该文件所属用户对应的第一路径。 根据本发明实施例的方法, 还包括: 第一路径为用户在云存储系统中所对应的回 收站空间的路径; 第二路径为文件在回收站空间中的绝对路径。 根据本发明实施例的方法, 还包括: 基于文件删除请求, 存储文件的原始路径。 根据本发明实施例的方法, 还包括: 将文件的原始路径作为文件的元数据进行存 储。 根据本发明实施例的方法, 还包括: 通过获取第一路径以及第二路径并通过使用 分布式云存储系统的 API移动对象函数接口, 将文件移动到第二路径下; 通过获取第 一路径并通过使用分布式云存储系统的 API列举对象函数接口, 显示回收站空间下包 含文件在内的所有文件; 通过获取根据第二路径并通过使用分布式云存储系统的 API 删除函数接口, 删除文件。 根据本发明实施例的方法, 还包括: 通过获取第二路径以及原始路径并通过使用 分布式云存储系统的 API还原函数接口, 将文件还原至原始路径。 根据本发明的另一个方面, 提供一种云存储的回收站管理装置, 该装置包括: 接 收模块, 设置为接收针对文件的文件删除请求; 检测模块, 设置为基于文件删除请求 中的用户信息, 检测云存储系统中是否存在与该文件所属用户对应的第一路径; 配置 模块, 设置为如果存在第一路径, 则为用户配置与文件对应的第二路径; 以及移动模 块, 设置为将文件移动到第二路径下。 根据本发明的实施例, 在该装置中, 配置模块还设置为如果不存在第一路径, 则 在云存储系统的回收站空间中配置与该文件所属用户对应的第一路径, 并为用户配置 与文件对应的第二路径。 根据本发明的实施例, 在该装置中, 配置模块还设置为使用用户信息中的用户标 识配置在云存储系统的回收站空间中配置与该文件所属用户对应的第一路径。 根据本发明的实施例, 该装置还包括: 存储模块, 设置为基于文件删除请求, 存 储文件的原始路径。 根据本发明的实施例, 在该装置中, 存储模块还设置为将文件的原始路径作为文 件的元数据进行存储。 根据本发明的实施例, 在该装置中, 移动模块还设置为通过获取第一路径以及第 二路径并通过使用分布式云存储系统的 API移动对象函数接口, 将文件移动到第二路 径下。 根据本发明的实施例, 该装置还包括: 浏览模块, 设置为通过获取第一路径并通 过使用分布式云存储系统的 API列举对象函数接口, 显示回收站空间下包含文件在内 的所有文件; 还原模块, 设置为通过获取第二路径以及原始路径并通过使用分布式云 存储系统的 API还原函数接口, 将文件还原至原始路径; 以及删除模块, 设置为通过 根据第二路径并通过使用分布式云存储系统的 API删除函数接口, 删除文件。 本发明的上述技术方案, 解决了现有技术中对于云存储的回收站中的数据不能进 行很好的管理工作, 因此有必要提出改进的技术方案解决上述问题, 通过对云存储的 回收站空间进行命名, 以及对元数据进行保存, 从而实现了对云存储的回收站进行管 理的工作, 更好的利用了云存储系统的回收站功能, 有效提升了用户体验。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本发明的一部分, 本发 明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图 中- 图 1是本发明实施例的云存储的回收站管理装置的结构框图; 图 2是本发明实施例的云存储的回收站管理方法的流程图; 图 3是本发明实施例的云存储的回收站管理方法对文件进行浏览的流程图; 图 4是本发明实施例的云存储的回收站管理方法对文件进行还原的流程图; 以及 图 5是本发明实施例的云存储的回收站管理方法对文件进行删除的流程图。 具体实施方式 本发明的主要思想在于, 在云存储系统中通过设置特殊的命名空间作为回收站空 间, 并通过对文件 /目录的列举、 删除、 移动、 操作实现回收站数据的管理。 为使本发明的目的、 技术方案和优点更加清楚, 下面将结合本发明具体实施例及 相应的附图对本申请技术方案进行清楚、 完整地描述, 显然, 所描述的实施例仅是本 发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术 人员在没有做出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范 围。 根据本发明的实施例, 提供一种云存储的回收站管理方法, 参考图 2, 图 2为本 发明涉及一种云存储的回收站管理方法的流程图。 在步骤 S202中,云存储系统接收到针对文件的文件删除请求, 需要把指定的内容 从云存储系统中删除即移动到云存储系统的回收站中。例如:需要将用户 A的文件 A、 文件 B、 文件夹 C移至回收站空间中。 接收到删除请求后云存储系统继续到步骤 S204:检测云存储系统中是否存在与该 文件所属用户对应的第一路径。 第一路径为该文件所属用户在云存储系统中所对应的 回收站空间路径。 例如用户 A 在云存储系统中对应的回收站空间路径为: /rest/namespace/UID A/recycle/。 如果没有检测到第一路径, 则继续到步骤 S206: 在云存储系统的回收站空间中配 置与该文件所属用户对应的第一路径。 在配置第一路径时, 使用对应用户的用户标识 对第一路径进行配置, 例如使用用户 A的用户 ID即 UIDA对用户 A的第一路径进行 配置, 配置后的用户 A的第一路径为 /rest/namespace/UIDA/recycle/。 配置第一路径完 成后进行步骤 S208。 如果检测到第一路径, 则继续到步骤 S208: 为用户配置与文件对应的第二路径。 第二路径为文件在回收站空间中的绝对路径。例如用户 A需要删除的文件 A的第二路 径可以被配置为: /rest/namespace/UID A/recycle/pathA/fileA。 在配置第二路径完成后继续到步骤 S210: 将文件移动到第二路径下。 此外, 在步 骤 S212处, 还可以保存文件的原始路径。 结合步骤 S210和 S212, 云存储系统获取到 文件的原始路径, 并将原始路径以元数据的形式进行存储, 接着云存储系统获取到第 一路径, 在第一路径下获取到第二路径, 然后使用分布式云存储系统的 API移动对象 函数接口, 将文件从原始路径移动到第一路径下的第二路径中。 例如: 用户 A删除文 件 A, 云存储系统将文件 A从原始路径 /rest/namespace/UIDA/pathA/fileA移至回收站 空间即第一路径 /rest/namespace/UIDA/recycle/中, 文件 A对应的最终目标位置即第二 路径 /rest/namespace/UIDA/recycle/pathA/fileA, 从而实现对文件 A的删除工作。 承上述例子,删除文件夹 /目录即将文件夹 /目录移动到云存储系统的回收站空间中 的方法与删除文件的方法相同, 此处不再举例说明。 根据本发明的实施例, 还提供一种云存储的回收站管理方法中对于文件进行浏览 的方法, 参考图 3, 图 3为一种云存储的回收站管理方法对文件进行浏览的流程图。 对云存储的回收站空间中的内容进行浏览, 接收到浏览回收站的请求, 在步骤TECHNICAL FIELD The present invention relates to the field of cloud storage systems, and in particular, to a cloud storage recycling station management method and apparatus. BACKGROUND With the development of science and technology, cloud storage technology has been widely used, and more people are beginning to use cloud storage systems to save and manage file resources, and functions in cloud storage systems are becoming more and more abundant. Among them, the cloud storage recycle bin function is a function frequently used by users. However, in the prior art, the ATMOS setting for the underlying storage does not support the recycling management function, and the data in the cloud storage recycle bin cannot be well managed. That is to say, although the existing technology has the function of the recycle bin of the cloud storage, the operations of the data in the recycle bin cannot be moved, enumerated, deleted, and restored, and the requirements for the user to perform the cloud storage project cannot be met. A good user experience. In summary, in the prior art, the data in the recycle bin of the cloud storage cannot be well managed, and therefore it is necessary to propose an improved technical solution to solve the above problem. SUMMARY OF THE INVENTION In view of the above drawbacks, the main object of the present invention is to provide a cloud storage recycling station management method and apparatus, which solves the problem of management difficulty of cloud storage recycling stations existing in the prior art. According to an aspect of the present invention, a cloud storage reclaiming station management method is provided, the method comprising: receiving a file deletion request for a file; detecting, according to user information in the file deletion request, whether the cloud storage system exists and the file belongs to a first path corresponding to the user; if the first path exists, configuring a second path corresponding to the file for the user; and moving the file to the second path. The method according to the embodiment of the present invention further includes: if the first path does not exist, configuring a first path corresponding to the user to which the file belongs in the recycle space of the cloud storage system, and configuring a second corresponding to the file for the user path. According to the method of the embodiment of the present invention, the step of configuring the first path corresponding to the user to which the file belongs in the collection space of the cloud storage system includes: configuring the content in the recycle space of the cloud storage system by using the user identifier configuration in the user information The first path corresponding to the user to which the file belongs. The method according to the embodiment of the present invention further includes: the first path is a path of the recycle bin space corresponding to the user in the cloud storage system; and the second path is an absolute path of the file in the recycle bin space. The method according to an embodiment of the present invention, further comprising: storing an original path of the file based on the file deletion request. The method according to an embodiment of the present invention, further comprising: storing the original path of the file as metadata of the file. The method according to the embodiment of the present invention, further comprising: moving the file to the second path by acquiring the first path and the second path and by using an API moving object function interface of the distributed cloud storage system; By using the API enumeration object function interface of the distributed cloud storage system, all the files including the files in the recycle bin space are displayed; the files are deleted by acquiring the function interface according to the second path and by using the API of the distributed cloud storage system. The method according to an embodiment of the present invention, further comprising: restoring the file to the original path by acquiring the second path and the original path and by using an API restore function interface of the distributed cloud storage system. According to another aspect of the present invention, a cloud storage reclaiming station management apparatus is provided, the apparatus comprising: a receiving module configured to receive a file deletion request for a file; and a detecting module configured to be based on user information in the file deletion request, Detecting whether there is a first path corresponding to the user to which the file belongs in the cloud storage system; the configuration module is configured to: if the first path exists, configure a second path corresponding to the file for the user; and the mobile module is configured to move the file Go to the second path. According to an embodiment of the present invention, in the apparatus, the configuration module is further configured to: if the first path does not exist, configure a first path corresponding to the user to which the file belongs in the recycle space of the cloud storage system, and configure the user The second path corresponding to the file. According to an embodiment of the present invention, in the apparatus, the configuration module is further configured to configure a first path corresponding to the user to which the file belongs in the recycle bin space of the cloud storage system using the user identifier configuration in the user information. According to an embodiment of the invention, the apparatus further comprises: a storage module configured to store the original path of the file based on the file deletion request. According to an embodiment of the invention, in the apparatus, the storage module is further arranged to store the original path of the file as metadata of the file. According to an embodiment of the invention, in the apparatus, the mobile module is further arranged to move the file to the second path by acquiring the first path and the second path and by using an API mobile object function interface of the distributed cloud storage system. According to an embodiment of the present invention, the apparatus further includes: a browsing module, configured to display all files including files in the recycle bin space by acquiring the first path and by using an API enumeration object function interface of the distributed cloud storage system; a restore module, configured to restore the file to the original path by obtaining the second path and the original path and by using an API restore function interface of the distributed cloud storage system; and deleting the module, set to pass the distribution according to the second path and by using The cloud storage system's API deletes the function interface and deletes files. The above technical solution of the present invention solves the problem that the data in the recycling station of the cloud storage cannot be well managed in the prior art, and therefore it is necessary to propose an improved technical solution to solve the above problem, through the recycling space of the cloud storage. The naming and saving of the metadata enable the management of the cloud storage recycle bin, and better utilize the recycle function of the cloud storage system, thereby effectively improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing a structure of a cloud storage recycling station management apparatus according to an embodiment of the present invention; FIG. 2 is a flowchart of a cloud storage recycling station management method according to an embodiment of the present invention; FIG. 4 is a flowchart of a cloud storage recycling station management method for restoring a file according to an embodiment of the present invention; and FIG. 5 is a cloud storage according to an embodiment of the present invention; The recycle bin management method is a flowchart for deleting files. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The main idea of the present invention is to set a special namespace as a recycle bin space in a cloud storage system, and manage the recycle bin data by enumerating, deleting, moving, and operating files/directories. The present invention will be clearly and completely described in the following with reference to the embodiments of the present invention and the accompanying drawings. Embodiments, not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without departing from the inventive scope are the scope of the present invention. According to an embodiment of the present invention, a cloud storage recycling station management method is provided. Referring to FIG. 2, FIG. 2 is a flowchart of a cloud storage recycling station management method according to the present invention. In step S202, the cloud storage system receives the file deletion request for the file, and needs to delete the specified content from the cloud storage system and move to the recycle bin of the cloud storage system. For example, you need to move user A's file A, file B, and folder C to the recycle bin space. After receiving the deletion request, the cloud storage system proceeds to step S204 to detect whether there is a first path corresponding to the user to which the file belongs in the cloud storage system. The first path is a recycle bin space path corresponding to the user to which the file belongs in the cloud storage system. For example, User A's corresponding Recycle Bin space path in the cloud storage system is: /rest/namespace/UID A/recycle/. If the first path is not detected, proceeding to step S206: configuring a first path corresponding to the user to which the file belongs in the recycle bin space of the cloud storage system. When the first path is configured, the first path is configured by using the user identifier of the corresponding user. For example, the first path of the user A is configured by using the user ID of the user A, that is, the user ID, and the first path of the configured user A is / Rest/namespace/UIDA/recycle/. After the configuration of the first path is completed, step S208 is performed. If the first path is detected, proceeding to step S208: configuring a second path corresponding to the file for the user. The second path is the absolute path of the file in the Recycle Bin space. For example, the second path of file A that user A needs to delete can be configured as: /rest/namespace/UID A/recycle/pathA/fileA. After the configuration of the second path is completed, proceeding to step S210: moving the file to the second path. Further, at step S212, the original path of the file can also be saved. In combination with steps S210 and S212, the cloud storage system obtains the original path of the file, and stores the original path in the form of metadata, and then the cloud storage system acquires the first path, obtains the second path in the first path, and then Using the API mobile object function interface of the distributed cloud storage system, the file is moved from the original path to the second path under the first path. For example: User A deletes file A, and the cloud storage system moves file A from the original path /rest/namespace/UIDA/pathA/fileA to the recycle bin space, ie the first path /rest/namespace/UIDA/recycle/, file A corresponds The final destination is the second path /rest/namespace/UIDA/recycle/pathA/fileA, which enables the deletion of file A. According to the above example, the method of deleting the folder/directory to move the folder/directory to the recycle bin space of the cloud storage system is the same as the method of deleting the file, and is not illustrated here. According to an embodiment of the present invention, a method for browsing a file in a cloud storage recycling station management method is provided. Referring to FIG. 3, FIG. 3 is a flowchart of a cloud storage recycling station management method for browsing a file. Browse the content in the recycle bin space of the cloud storage, receive the request to browse the recycle bin, in the step
S302处, 获取对应用户的第一路径。 接着在步骤 S304处, 可以使用分布式云存储系 统的 API列举对象函数接口。 最后在步骤 S306处, 显示回收站空间下包含文件在内 的所有文件信息。 例如用户 B 需要浏览云存储的回收站, 获取到用户 B 的第一路径 /rest/namespace/UIDB/recycle/, 然后使用列举对象函数接口, 则显示出用户 B 的回收 站空间 /rest/namespace/UIDB/recycle/中所有文件以及文件的信息。 根据本发明的另一个实施例, 进一步地, 也可以浏览回收站中的具体文件信息。 在步骤 S302处获取所要浏览文件对应的第二路径,通过使用列举对象函数接口,显示 文件的信息。 例如, 用户 B 要浏览文件 B, 获取到文件 B 对应的第二路径 /rest/namespace/UIDB/recycle/fileB, 使用列举对象函数接口, 显示文件 B的信息。 根据本发明的实施例, 还提供一种云存储的回收站管理方法中对文件进行还原的 方法, 参考图 4, 图 4为一种云存储的回收站管理方法对文件进行还原的流程图。 对云存储的回收站空间中的内容进行还原, 接收到还原文件的请求, 在步骤 S402 处, 从元数据里获取指定内容的原路径, 接着在步骤 S404处, 获取该指定内容在回收 站空间中的第二路径, 接着在步骤 S406处, 检测指定内容是否在回收站内, 如果内容 在回收站内则继续到步骤 S408, 使用分布式云存储系统 API还原函数接口, 将内容还 原至原始路径。 如果内容不在回收站内, 则还原操作结束。 例如: 用户 A需要还原云 存储的回收站中的文件 A, 则先从元数据中获取文件 A 的原始路径 /rest/namespace/UIDA/pathA/fileA , 然后获取文件 A 在用户 A 对应的回收站 /rest/namespace/UID A/recycle/中的第二路径 /rest/namespace/UIDA/recycle/ pathA/ fileA, 接着使用 分布式云存储系统 API 还原 函数接 口 , 将文件 A 从 /rest/namespace/UIDA/recycle/pathA/fileA还原至 IJ/rest/namespace/UIDA/pathA/ fileA, 从 而完成还原操作。 根据本发明的另一个实施例, 进一步地, 也可以对文件夹 /目录进行 还原, 此处不再举例。 根据本发明的实施例, 还提供一种云存储的回收站管理方法中对回收站中的文件 进行删除的方法, 参考图 5, 图 5为一种云存储的回收站管理方法对文件进行删除的 流程图。 对云存储的回收站空间中的内容进行删除, 接收到删除文件的请求, 在步骤 S502 处, 获取该指定内容在回收站空间中的第二路径, 接着在步骤 S504处, 判断指定内容 是否在回收站内, 如果内容在回收站内则继续到步骤 S506, 使用分布式云存储系统 API删除函数接口, 将指定内容删除。 如果指定内容不再回收站内则删除操作结束。 例如: 用户 B需要删除云存储的回收站中的文件 B, 则先获取文件 B在用户 B对应的 回收站 /rest/namespace/UIDB/recycle/中的第二路径 /rest/namespace/UIDB/recycle/ fileB, 然后使用 分布式云存储系统 API 删 除函数接 口 , 把文件 B 从 /rest/namespace/UIDB/recycle/fileB删除。 根据本发明的另一个实施例,进一步地, 也可以对云存储的回收站进行清空操作, 获取用户对应的回收站空间中所有文件的第二路径, 使用分布式云存储系统 API删除 函数接口, 将用户对应的回收站空间清空。 进一步, 也可以对云存储的回收站进行删 除, 获取用户对应的回收站空间路径即第一路径, 使用分布式云存储系统 API删除函 数接口, 删除用户对应的云存储的回收站。 根据本发明的实施例, 还提供一种云存储的回收站管理装置, 参考图 1, 图 1 为 本发明涉及一种云存储的回收站管理装置的结构框图。 本发明的装置包括接收模块 10、 检测模块 20、 配置模块 30、 移动模块 40、 存储 模块 50、 浏览模块 60、 还原模块 70以及删除模块 80。 接收模块 10可以被配置成接收针对文件的文件删除请求。 检测模块 20可以被配 置成基于文件删除请求中的用户信息, 检测云存储系统中是否存在与该文件所属用户 对应的第一路径。配置模块 30可以被配置成如果存在第一路径, 则为用户配置与文件 对应的第二路径。 配置模块 30可以进一步被配置成: 如果不存在第一路径, 则在云存储系统的回收 站空间中配置与该文件所属用户对应的第一路径, 并为用户配置与文件对应的第二路 径。 配置模块 30 还可以被配置成使用用户信息中的用户标识配置在云存储系统的回 收站空间中配置与该文件所属用户对应的第一路径。 移动模块 40 可以被配置成通过获取第一路径以及第二路径并通过使用分布式云 存储系统的 API移动对象函数接口, 将文件移动到第二路径下。 存储模块 50可以被配置成基于文件删除请求, 存储文件的原始路径。 存储模块 50还可以被配置成将文件的原始路径作为文件的元数据进行存储。 浏览模块 60可以被配置成通过获取第一路径并通过使用分布式云存储系统的 API 列举对象函数接口, 显示回收站空间下包含文件在内的所有文件。 还原模块 70 可以被配置成通过获取第二路径以及原始路径并通过使用分布式云 存储系统的 API还原函数接口, 将文件还原至原始路径。 以及 删除模块 80可以被配置成通过根据第二路径并通过使用分布式云存储系统的 API 删除函数接口, 删除文件。 本发明的装置的结构功能特征与方法的操作步骤对应, 可以相互参照, 不再一一 赘述。 综上所述, 根据本发明的上述技术方案, 通过对云存储的回收站空间进行命名, 以及对元数据进行保存, 从而实现了对云存储的回收站进行管理的工作, 更好的利用 了云存储系统的回收站功能, 有效提升了用户体验。 以上所述是本发明的优选实施方式, 应当指出, 对于本技术领域的普通技术人员 来说, 在不脱离本发明所述原理的前提下, 还可以作出若干改进和润饰, 这些改进和 润饰也应视为本发明的保护范围。 S302: Obtain a first path of the corresponding user. Next at step S304, the object function interface can be enumerated using the API of the distributed cloud storage system. Finally, at step S306, all file information including the file under the recycle bin space is displayed. For example, user B needs to browse the recycle bin of cloud storage, obtain the first path to user B /rest/namespace/UIDB/recycle/, and then use the enumeration object function interface to display user B's recycle bin space/rest/namespace/ Information about all files and files in UIDB/recycle/. According to another embodiment of the present invention, further, specific file information in the recycle bin can also be browsed. The second path corresponding to the file to be browsed is acquired at step S302, and the information of the file is displayed by using the enumeration object function interface. For example, user B wants to browse file B, obtains the second path /rest/namespace/UIDB/recycle/fileB corresponding to file B, and displays the information of file B using the enumeration object function interface. According to an embodiment of the present invention, a method for restoring a file in a cloud storage recycling station management method is provided. Referring to FIG. 4, FIG. 4 is a flowchart of a cloud storage recycling station management method for restoring a file. Recovering the content in the recycle space of the cloud storage, receiving the request to restore the file, obtaining the original path of the specified content from the metadata at step S402, and then acquiring the specified content in the recycle bin space at step S404 In the second path, then at step S406, it is detected whether the specified content is in the recycle bin, and if the content is in the recycle bin, then proceed to step S408 to restore the content to the original path using the distributed cloud storage system API restore function interface. If the content is not in the recycle bin, the restore operation ends. For example: User A needs to restore file A in the recycle bin of cloud storage, first obtain the original path of file A from the metadata /rest/namespace/UIDA/pathA/fileA, and then obtain file A in the recycle bin corresponding to user A. /rest/namespace/UID The second path in A/recycle//rest/namespace/UIDA/recycle/ pathA/ fileA, then use the distributed cloud storage system API restore function interface, file A from /rest/namespace/UIDA /recycle/pathA/fileA restores to IJ/rest/namespace/UIDA/pathA/ fileA to complete the restore operation. According to another embodiment of the present invention, further, the folder/directory can also be restored, which is not exemplified here. According to an embodiment of the present invention, a method for deleting a file in a recycle bin in a cloud storage recycle bin management method is provided. Referring to FIG. 5, FIG. 5 is a cloud storage recycle bin management method for deleting a file. Flow chart. Deleting the content in the recycle bin space of the cloud storage, receiving the request to delete the file, obtaining the second path of the specified content in the recycle bin space at step S502, and then determining whether the specified content is at step S504 In the recycle bin, if the content is in the recycle bin, proceed to step S506, and delete the function interface using the distributed cloud storage system API to delete the specified content. If the specified content is no longer in the recycle bin, the delete operation ends. For example, if user B needs to delete file B in the recycle bin of the cloud storage, first obtain the second path /rest/namespace/UIDB/recycle of file B in the recycle bin/rest/namespace/UIDB/recycle/ corresponding to user B. /fileB, then use the distributed cloud storage system API to remove the function interface and remove file B from /rest/namespace/UIDB/recycle/fileB. According to another embodiment of the present invention, further, the cloud storage reclaiming station may be emptied to obtain a second path of all files in the reclaiming space corresponding to the user, and the distributed cloud storage system API is used to delete the function interface. Empty the recycle bin space corresponding to the user. Further, the recycle bin of the cloud storage may be deleted, and the first path of the recycler space path corresponding to the user is obtained, and the function interface of the distributed cloud storage system API is deleted, and the recycle bin corresponding to the cloud storage of the user is deleted. According to an embodiment of the present invention, there is also provided a cloud storage recycling station management apparatus. Referring to FIG. 1, FIG. 1 is a structural block diagram of a cloud storage recycling station management apparatus according to the present invention. The device of the present invention includes a receiving module 10, a detecting module 20, a configuration module 30, a moving module 40, a storage module 50, a browsing module 60, a restoring module 70, and a deleting module 80. The receiving module 10 can be configured to receive a file deletion request for a file. The detecting module 20 may be configured to detect, according to the user information in the file deletion request, whether there is a first path corresponding to the user to which the file belongs in the cloud storage system. The configuration module 30 can be configured to configure a second path corresponding to the file for the user if the first path exists. The configuration module 30 may be further configured to: if the first path does not exist, configure a first path corresponding to the user to which the file belongs in the recycle space of the cloud storage system, and configure a second path corresponding to the file for the user. The configuration module 30 can also be configured to configure a first path corresponding to the user to which the file belongs in the recycle bin space of the cloud storage system using the user identification configuration in the user information. The mobility module 40 can be configured to move the file to the second path by acquiring the first path and the second path and by using an API mobile object function interface of the distributed cloud storage system. The storage module 50 can be configured to store the original path of the file based on the file deletion request. The storage module 50 can also be configured to store the original path of the file as metadata for the file. The browsing module 60 can be configured to display all files including files in the recycle bin space by obtaining the first path and by using the API enumeration object function interface of the distributed cloud storage system. The restore module 70 can be configured to restore the file to the original path by taking the second path as well as the original path and by using the API restore function interface of the distributed cloud storage system. And the deletion module 80 can be configured to delete the file by deleting the function interface according to the second path and by using the API of the distributed cloud storage system. The structural and functional features of the device of the present invention correspond to the operational steps of the method, and may be referred to each other without further elaboration. In summary, according to the above technical solution of the present invention, by naming the recycling space of the cloud storage and saving the metadata, the management of the cloud storage recycling station is realized, and the utilization is better utilized. The cloud storage system's recycle bin function effectively enhances the user experience. The above is a preferred embodiment of the present invention, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present invention. It should be considered as the scope of protection of the present invention.

Claims

权 利 要 求 书 、 一种云存储的回收站管理方法, 包括: 接收针对文件的文件删除请求; A claim for a claim, a method for managing a recycle bin of a cloud storage, comprising: receiving a file deletion request for a file;
基于所述文件删除请求中的用户信息, 检测云存储系统中是否存在与该文 件所属用户对应的第一路径;  And detecting, according to the user information in the file deletion request, whether there is a first path corresponding to the user to which the file belongs in the cloud storage system;
如果存在所述第一路径, 则为所述用户配置与所述文件对应的第二路径; 将所述文件移动到所述第二路径下。 、 根据权利要求 1所述的方法, 其中, 还包括:  If the first path exists, configuring a second path corresponding to the file for the user; moving the file to the second path. The method according to claim 1, further comprising:
如果不存在所述第一路径, 则在云存储系统的回收站空间中配置与该文件 所属用户对应的所述第一路径,并为所述用户配置与所述文件对应的第二路径。 、 根据权利要求 2所述的方法, 其中, 在云存储系统的回收站空间中配置与该文 件所属用户对应的所述第一路径的步骤包括:  If the first path does not exist, the first path corresponding to the user to which the file belongs is configured in the recycle space of the cloud storage system, and the second path corresponding to the file is configured for the user. The method according to claim 2, wherein the step of configuring the first path corresponding to the user to which the file belongs in the recycle bin space of the cloud storage system comprises:
使用所述用户信息中的用户标识配置在云存储系统的回收站空间中配置与 该文件所属用户对应的所述第一路径。 、 根据权利要求 1-3任一项所述的方法, 其中, 还包括:  The first path corresponding to the user to which the file belongs is configured in the recycle bin space of the cloud storage system by using the user identifier configuration in the user information. The method according to any one of claims 1 to 3, further comprising:
所述第一路径为所述用户在云存储系统中所对应的回收站空间的路径; 所述第二路径为所述文件在所述回收站空间中的绝对路径。 、 根据权利要求 1或 2所述的方法, 其中, 还包括: 基于所述文件删除请求, 存储所述文件的原始路径。 、 根据权利要求 5所述的方法, 其中, 将所述文件的原始路径作为所述文件的元 数据进行存储。 、 根据权利要求 1或 2所述的方法, 其中, 还包括:  The first path is a path of the recycle bin space corresponding to the user in the cloud storage system; and the second path is an absolute path of the file in the recycle bin space. The method according to claim 1 or 2, further comprising: storing an original path of the file based on the file deletion request. The method according to claim 5, wherein the original path of the file is stored as metadata of the file. The method according to claim 1 or 2, further comprising:
通过获取所述第一路径以及所述第二路径并通过使用分布式云存储系统的 API移动对象函数接口, 将所述文件移动到所述第二路径下; 通过获取所述第一路径并通过使用分布式云存储系统的 API列举对象函数 接口, 显示所述回收站空间下包含所述文件在内的所有文件; 以及 And moving the file to the second path by acquiring the first path and the second path and by using an API moving object function interface of the distributed cloud storage system; Displaying all files including the file in the recycle bin space by acquiring the first path and by using an API enumeration object function interface of the distributed cloud storage system;
根据所述第二路径并通过使用分布式云存储系统的 API删除函数接口, 删 除所述文件。 、 根据权利要求 5所述的方法, 其中, 还包括:  The file is deleted according to the second path and by using an API deletion function interface of the distributed cloud storage system. The method according to claim 5, further comprising:
通过获取所述第二路径以及所述原始路径并通过使用分布式云存储系统的 API还原函数接口, 将所述文件还原至所述原始路径。 、 一种云存储的回收站管理装置, 包括:  The file is restored to the original path by obtaining the second path and the original path and by using an API restore function interface of the distributed cloud storage system. A recycling device management device for cloud storage, comprising:
接收模块, 设置为接收针对文件的文件删除请求;  a receiving module, configured to receive a file deletion request for a file;
检测模块, 设置为基于所述文件删除请求中的用户信息, 检测云存储系统 中是否存在与该文件所属用户对应的第一路径;  The detecting module is configured to detect, according to the user information in the file deletion request, whether a first path corresponding to the user to which the file belongs is detected in the cloud storage system;
配置模块, 设置为如果存在所述第一路径, 则为所述用户配置与所述文件 对应的第二路径;  a configuration module, configured to configure a second path corresponding to the file for the user if the first path exists;
移动模块, 设置为将所述文件移动到所述第二路径下。 0、 根据权利要求 9所述的装置, 其中, 所述配置模块还设置为如果不存在所述第 一路径, 则在云存储系统的回收站空间中配置与该文件所属用户对应的所述第 一路径, 并为所述用户配置与所述文件对应的第二路径。 1、 根据权利要求 10所述的装置,其中,所述配置模块还设置为使用所述用户信息 中的用户标识配置在云存储系统的回收站空间中配置与该文件所属用户对应的 所述第一路径。 、 根据权利要求 9或 10所述的装置, 其中, 还包括:  A mobile module, configured to move the file to the second path. The device according to claim 9, wherein the configuration module is further configured to: if the first path does not exist, configure the first corresponding to the user to which the file belongs in the recycle space of the cloud storage system a path, and configuring a second path corresponding to the file for the user. 1. The apparatus according to claim 10, wherein the configuration module is further configured to configure, in the recycle bin space of the cloud storage system, the first page corresponding to the user to which the file belongs, using the user identifier configuration in the user information A path. The device according to claim 9 or 10, further comprising:
存储模块, 设置为基于所述文件删除请求, 存储所述文件的原始路径。 3、 根据权利要求 12所述的装置,其中,存储模块还设置为将所述文件的原始路径 作为所述文件的元数据进行存储。 、 根据权利要求 8或 9所述的装置, 其中, 移动模块还设置为通过获取所述第一 路径以及所述第二路径并通过使用分布式云存储系统的 API 移动对象函数接 口, 将所述文件移动到所述第二路径下。 根据权利要求 8或 9所述的装置, 其中, 还包括: a storage module, configured to store an original path of the file based on the file deletion request. 3. Apparatus according to claim 12 wherein the storage module is further arranged to store the original path of the file as metadata of the file. The apparatus according to claim 8 or 9, wherein the mobile module is further configured to acquire the first path and the second path by using an API mobile object function interface of the distributed cloud storage system The file is moved to the second path. The device according to claim 8 or 9, further comprising:
浏览模块, 设置为通过获取所述第一路径并通过使用分布式云存储系统的 API列举对象函数接口,显示所述回收站空间下包含所述文件在内的所有文件; 还原模块, 设置为通过获取所述第二路径以及所述原始路径并通过使用分 布式云存储系统的 API还原函数接口, 将所述文件还原至所述原始路径; 以及 删除模块, 设置为通过根据第二路径并通过使用分布式云存储系统的 API 删除函数接口, 删除所述文件。  a browsing module, configured to display, by using the API enumeration object function interface of the distributed cloud storage system, all files including the file in the recycle bin space; and a restore module, configured to pass Obtaining the second path and the original path and restoring the file to the original path by using an API restore function interface of a distributed cloud storage system; and deleting a module, configured to pass according to the second path and by using The API of the distributed cloud storage system deletes the function interface and deletes the file.
PCT/CN2013/082953 2013-01-29 2013-09-04 Method and device for managing recycle bin of cloud storage WO2014117513A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310033765.0A CN103973731B (en) 2013-01-29 2013-01-29 The recycle bin management method and device of a kind of cloud storage
CN201310033765.0 2013-01-29

Publications (1)

Publication Number Publication Date
WO2014117513A1 true WO2014117513A1 (en) 2014-08-07

Family

ID=51242775

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/082953 WO2014117513A1 (en) 2013-01-29 2013-09-04 Method and device for managing recycle bin of cloud storage

Country Status (2)

Country Link
CN (1) CN103973731B (en)
WO (1) WO2014117513A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3627326A4 (en) * 2017-06-16 2020-10-28 Huawei Technologies Co., Ltd. File processing method and mobile terminal

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104156474B (en) * 2014-08-25 2017-06-23 曙光信息产业股份有限公司 The fast deleting method of file in a kind of distributed file system
CN105208071A (en) * 2014-11-26 2015-12-30 维沃移动通信有限公司 Mobile terminal data deletion method and mobile terminal
CN107463333B (en) * 2016-06-03 2019-12-20 杭州海康威视数字技术股份有限公司 Method, device and system for recovering network hard disk space
CN106354884B (en) * 2016-10-09 2020-02-07 苏州浪潮智能科技有限公司 Data object deleting method and device based on distributed file system
CN107239521A (en) * 2017-05-26 2017-10-10 郑州云海信息技术有限公司 Recycle bin application process and system on a kind of distributed type assemblies
CN108228813B (en) * 2017-12-29 2021-08-24 北京奇虎科技有限公司 Method and device for deleting duplicate database in distributed system
CN110888847B (en) * 2019-12-16 2023-04-21 新华三技术有限公司成都分公司 Recycle bin system and file recycling method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102035884A (en) * 2010-12-03 2011-04-27 华中科技大学 Cloud storage system and data deployment method thereof
CN102143215A (en) * 2011-01-20 2011-08-03 中国人民解放军理工大学 Network-based PB level cloud storage system and processing method thereof
CN102307221A (en) * 2011-03-25 2012-01-04 国云科技股份有限公司 Cloud storage system and implementation method thereof
US20120226722A1 (en) * 2011-03-02 2012-09-06 International Business Machines Corporation Systems, methods, and computer program products for secure multi-enterprise storage

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101058007B1 (en) * 2004-05-18 2011-08-19 삼성전자주식회사 How to delete data stored on a recording medium and how to restore deleted data
CN101546311B (en) * 2008-03-27 2012-05-02 北京铭万互联科技有限公司 Data processing method and data processing device for recycle bin
CN101937377B (en) * 2009-06-29 2014-10-22 百度在线网络技术(北京)有限公司 Data recovery method and device
CN101710920B (en) * 2009-11-23 2015-05-13 中兴通讯股份有限公司 Message management method and message management system of mobile communication terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102035884A (en) * 2010-12-03 2011-04-27 华中科技大学 Cloud storage system and data deployment method thereof
CN102143215A (en) * 2011-01-20 2011-08-03 中国人民解放军理工大学 Network-based PB level cloud storage system and processing method thereof
US20120226722A1 (en) * 2011-03-02 2012-09-06 International Business Machines Corporation Systems, methods, and computer program products for secure multi-enterprise storage
CN102307221A (en) * 2011-03-25 2012-01-04 国云科技股份有限公司 Cloud storage system and implementation method thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3627326A4 (en) * 2017-06-16 2020-10-28 Huawei Technologies Co., Ltd. File processing method and mobile terminal
US11468008B2 (en) 2017-06-16 2022-10-11 Huawei Technologies Co., Ltd. File processing method and mobile terminal
US11868314B2 (en) 2017-06-16 2024-01-09 Huawei Technologies Co., Ltd. File processing method and mobile terminal

Also Published As

Publication number Publication date
CN103973731A (en) 2014-08-06
CN103973731B (en) 2017-12-29

Similar Documents

Publication Publication Date Title
WO2014117513A1 (en) Method and device for managing recycle bin of cloud storage
WO2015007125A1 (en) Method and apparatus for scanning file in memory
WO2013143391A1 (en) Method and system for cleaning up files on device
WO2014015488A1 (en) Method and apparatus for data storage and query
CN101916164A (en) Mobile terminal and file browsing method implemented by same
WO2015117426A1 (en) File management method and device
CN103744875B (en) Data quick migration method and system based on file system
CN110998537B (en) Expired backup processing method and backup server
WO2010078760A1 (en) A method, a device for storing file and a method, a device for deleting file
WO2013143393A1 (en) Method and system utilizing cloud computation for scanning files of device
EP2701083A1 (en) Method, apparatus and system for auto-synchronization of compressed content files
US8903875B2 (en) Method for identifying corresponding directories in a union-mounted file system
CN102456059A (en) Data deduplication processing system
JP2014056319A (en) Information processor, program, and control method
JP2015508927A5 (en)
CN101795320A (en) Method for cleaning up files in mobile communication terminal
CN104424225B (en) Document handling method based on document transmission process and device
WO2014166196A1 (en) Picture displaying and managing method and system with character introduction function
US9087093B2 (en) Method for implementing electronic bookmarks and device thereof
CN103605583A (en) File recovery method and system
CN103714013A (en) Method and device for allocating storage space of file system
CN107402846B (en) File processing method and device
CN103123651A (en) Method of rapidly searching multiple same-kind paper, device and mobile equipment
CN103136354A (en) Linux system folder comparison method
CN103888513A (en) Server-side multifile downloading method and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13874197

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13874197

Country of ref document: EP

Kind code of ref document: A1