[go: up one dir, main page]

CN113778942B - File management method, device, computer system and computer readable storage medium - Google Patents

File management method, device, computer system and computer readable storage medium Download PDF

Info

Publication number
CN113778942B
CN113778942B CN202110122064.9A CN202110122064A CN113778942B CN 113778942 B CN113778942 B CN 113778942B CN 202110122064 A CN202110122064 A CN 202110122064A CN 113778942 B CN113778942 B CN 113778942B
Authority
CN
China
Prior art keywords
file
file management
application
management application
local
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202110122064.9A
Other languages
Chinese (zh)
Other versions
CN113778942A (en
Inventor
郭静
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
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 Beijing Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202110122064.9A priority Critical patent/CN113778942B/en
Publication of CN113778942A publication Critical patent/CN113778942A/en
Application granted granted Critical
Publication of CN113778942B publication Critical patent/CN113778942B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/11File system administration, e.g. details of archiving or snapshots
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/76Adapting program code to run in a different environment; Porting

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Stored Programmes (AREA)

Abstract

本公开提供了一种文件管理方法、文件管理装置、计算机系统、计算机可读存储介质和计算机程序产品。该文件管理方法包括:调用文件管理应用,其中,文件管理应用基于具有调用原生系统接口功能的跨平台桌面应用开发工具构建,该构建过程包括:利用跨平台桌面应用开发工具调用原生系统的接口构建应用程序,以实现对文件管理应用的视图交互页面和应用功能的构建;基于跨平台桌面应用开发工具实现文件管理应用在进行数据处理时的进程间通信;以及利用跨平台桌面应用开发工具调用与存储功能相关的接口实现文件管理应用中的数据存储;以及利用文件管理应用进行文件管理。

The present disclosure provides a file management method, a file management device, a computer system, a computer-readable storage medium, and a computer program product. The file management method includes: calling a file management application, wherein the file management application is constructed based on a cross-platform desktop application development tool with a function of calling a native system interface, and the construction process includes: using the cross-platform desktop application development tool to call the interface of the native system to construct an application program to realize the construction of a view interaction page and application function of the file management application; based on the cross-platform desktop application development tool, realizing inter-process communication of the file management application when performing data processing; and using the cross-platform desktop application development tool to call an interface related to a storage function to realize data storage in the file management application; and using the file management application to perform file management.

Description

File management method, file management device, computer system and computer readable storage medium
Technical Field
The present disclosure relates to the field of computer technology, and more particularly, to a file management method, a file management apparatus, a computer system, a computer-readable storage medium, and a computer program product.
Background
With the rapid development of computer technology, the role of front-end development technology in product development links is becoming more and more important. Desktop development is an important expression form of front-end development technology, and desktop application and software generated by the desktop development are deep in aspects of daily life, so that the desktop development is particularly important for the design work such as development, operation and maintenance of the application and the software to meet the requirements of users.
In the process of realizing the disclosed concept, the inventor finds that at least the following problems exist in the related art, and the desktop application and software developed in the traditional mode cannot flexibly run on each platform, so that the development effect is poor, and the user satisfaction is low.
Disclosure of Invention
In view of this, the present disclosure provides a file management method, a file management apparatus, a computer system, a computer-readable storage medium, and a computer program product.
One aspect of the disclosure provides a file management method, which comprises the steps of calling a file management application, wherein the file management application is built based on a cross-platform desktop application development tool with a function of calling a native system interface, the building process comprises the steps of calling an interface building application program of the native system by using the cross-platform desktop application development tool to build a view interaction page and an application function of the file management application, realizing inter-process communication of the file management application when data processing is performed based on the cross-platform desktop application development tool, and calling an interface related to a storage function by using the cross-platform desktop application development tool to realize data storage in the file management application, and performing file management by using the file management application.
According to an embodiment of the disclosure, the file management application construction process comprises the steps of obtaining a rich text editor of a third party open source, and taking the rich text editor as a lightweight markup language editor of the file management application.
According to an embodiment of the disclosure, file management with the file management application includes editing a local file based on the lightweight markup language editor, and storing the local file to a preset web space with the cross-platform desktop application development tool invoking an interface related to a storage function.
According to the embodiment of the disclosure, the file management method comprises the steps of responding to a downloading request, obtaining a cloud file to be downloaded, wherein the cloud file to be downloaded comprises a local file existing locally and a file not existing locally, updating the local file to the cloud file to be downloaded when the cloud file to be downloaded exists locally, and storing the cloud file to be downloaded to the local area when the cloud file to be downloaded does not exist locally.
According to the embodiment of the disclosure, responding to a downloading request, obtaining a cloud file to be downloaded comprises obtaining a cloud file stored in a preset network space, traversing a local file, comparing the cloud file with the local file to obtain a target cloud file different from the local file, and taking the target cloud file as the cloud file to be downloaded.
According to an embodiment of the disclosure, the preset network space is determined according to an account number of the user.
Another aspect of the disclosure provides a file management apparatus, including a calling module for calling a file management application, wherein the file management application is built based on a cross-platform desktop application development tool having a function of calling a native system interface, and a management module for performing file management using the file management application.
Another aspect of the present disclosure provides a computer system comprising one or more processors and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the file management method as described above.
Another aspect of the present disclosure provides a computer-readable storage medium having stored thereon computer-executable instructions that, when executed, are configured to implement a file management method as described above.
Another aspect of the present disclosure provides a computer program product comprising computer executable instructions which, when executed, are for implementing a file management method as described above.
According to the embodiment of the disclosure, the file management application is constructed based on a cross-platform desktop application development tool with a function of calling a native system interface; and the technical means for managing the files by using the file management application, because the introduced cross-platform desktop application development tool can directly call the system interface, the obtained file management application constructed based on the cross-platform desktop application development tool can be operated on each platform, at least partially, the technical problem that the desktop application and software developed in the traditional mode cannot be flexibly operated on each platform is solved, and further, the technical effects of optimizing the development effect and improving the user satisfaction are achieved.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments thereof with reference to the accompanying drawings in which:
FIG. 1 schematically illustrates an exemplary system architecture to which a file management method may be applied, according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of a file management method according to an embodiment of the present disclosure;
FIG. 3 schematically illustrates a system relationship diagram of a file management application according to an embodiment of the present disclosure;
FIG. 4 schematically illustrates a system flow diagram of a file management application in accordance with an embodiment of the present disclosure;
FIG. 5 schematically illustrates a file automatic download workflow diagram of a file management application in accordance with an embodiment of the present disclosure;
FIG. 6 schematically illustrates a block diagram of a file management apparatus according to an embodiment of the present disclosure, and
Fig. 7 schematically illustrates a block diagram of a computer system suitable for implementing the above-described methods, according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is only exemplary and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and/or the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It should be noted that the terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly formal manner.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a convention should be interpreted in accordance with the meaning of one of skill in the art having generally understood the convention (e.g., "a system having at least one of A, B and C" would include, but not be limited to, systems having a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a formulation similar to at least one of "A, B or C, etc." is used, in general such a formulation should be interpreted in accordance with the ordinary understanding of one skilled in the art (e.g. "a system with at least one of A, B or C" would include but not be limited to systems with a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
The Web (i.e., world Wide Web, also known as the World Wide Web) is a global, dynamic, interactive, cross-platform, distributed graphical information system based on hypertext and HTTP. The network service is established on the Internet, a graphical and easily-accessible visual interface can be provided for a browser to search and browse information on the Internet, and documents and hyperlinks can organize information nodes on the Internet into a network structure which is mutually related.
With the enrichment of Web application functions, the front-end technology can easily realize a beautiful and easy-to-use interface, and creating desktop applications by using the Web technology becomes the mainstream.
The inventor finds that in the process of realizing the conception of the present disclosure, the traditional desktop development technology, such as development of windows desktop software, should be preferred, the NET platform has multiple languages under which vc++,. NET, c# and the like can be selected, however, interfaces developed by these technologies are not attractive, resulting in lower user satisfaction. Meanwhile, when the technologies are used for developing and applying, the design and the codes cannot be separated, and the existing mainstream development technology is not met. Moreover, application security techniques developed by these techniques are complex and inefficient to use across platforms, and due to the shortcomings and performance issues of NET on resource management, application development efficiency and operating efficiency are also reduced.
Embodiments of the present disclosure provide a file management method, a file management apparatus, a computer system, a computer-readable storage medium, and a computer program product. The method comprises the steps of calling a file management application, wherein the file management application is constructed based on a cross-platform desktop application development tool with a function of calling a native system interface, and performing file management by using the file management application.
Fig. 1 schematically illustrates an exemplary system architecture 100 in which a file management method may be applied according to an embodiment of the present disclosure. It should be noted that fig. 1 is only an example of a system architecture to which embodiments of the present disclosure may be applied to assist those skilled in the art in understanding the technical content of the present disclosure, but does not mean that embodiments of the present disclosure may not be used in other devices, systems, environments, or scenarios.
As shown in fig. 1, a system architecture 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired and/or wireless communication links, and the like.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like. The above-described file management application may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server providing support for files or invoked applications managed by the user with the terminal devices 101, 102, 103. The background management server may analyze and process the received data such as the user request, and feed back the processing result (e.g., the web page, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that, the file management method provided by the embodiment of the present disclosure may be generally performed by the terminal device 101, 102, or 103, or may be performed by another terminal device different from the terminal device 101, 102, or 103. Accordingly, the file management apparatus provided by the embodiments of the present disclosure may also be provided in the terminal device 101, 102, or 103, or in another terminal device different from the terminal device 101, 102, or 103. Or the file management methods provided by embodiments of the present disclosure may be generally performed by the server 105. Accordingly, the file management apparatus provided by the embodiments of the present disclosure may be generally provided in the server 105. The file management method provided by the embodiments of the present disclosure may also be performed by a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Accordingly, the file management apparatus provided by the embodiments of the present disclosure may also be provided in a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105.
For example, the file management application may be originally stored in any one of the terminal devices 101, 102, or 103 (for example, but not limited to, the terminal device 101), or stored on an external storage device and may be imported into the terminal device 101. Then, the terminal device 101 may locally perform the file management method provided by the embodiment of the present disclosure, or transmit the file management application to other terminal devices, servers, or server clusters, and perform the file management method provided by the embodiment of the present disclosure by the other terminal devices, servers, or server clusters that receive the file management application.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Fig. 2 schematically illustrates a flow chart of a file management method according to an embodiment of the present disclosure.
As shown in FIG. 2, the method includes operations S201-S202.
In operation S201, a file management application is invoked, wherein the file management application is built based on a cross-platform desktop application development tool having a function of invoking a native system interface.
According to an embodiment of the present disclosure, the process of constructing the file management application in operation S201 may include operations S201-1 to S201-3, for example.
In operation S201-1, an interface construction application program of a native system is called using a cross-platform desktop application development tool to implement construction of a view interaction page and application functions of a file management application.
In operation S201-2, inter-process communication of the file management application in data processing is implemented based on the cross-platform desktop application development tool.
In operation S201-3, data storage in the file management application is implemented using the cross-platform desktop application development tool to invoke an interface associated with the storage function.
In operation S202, file management is performed using a file management application.
According to the embodiments of the present disclosure, the file management application is, for example, software having file management and editing functions, in which, for example, a new file may be created, a local file may be poured, various files may be managed, the files may be edited by an editor, and a cloud file may be automatically downloaded to the local. The cross-platform desktop application development tool may be, for example, electron open source software. The Electron is an open source framework commonly maintained by an active community composed of Github and a plurality of contributors, and system APIs (application program interfaces) can be encapsulated inside the open source framework, so that JavaScript can be directly used for accessing the system APIs in the application development process, namely, a cross-platform desktop application can be easily constructed by utilizing the function of calling a native system interface possessed by the Electron and combining a traditional front-end technology.
Through the embodiment of the disclosure, the API module provided by the Electron open source software and the system API are mutually communicated to design a file management and editing software, so that the method has the characteristics of convenience and rapidness in a cross-platform manner, and provides convenience for a developer in the application development process due to the fact that the Electron provides rich APIs, and is more friendly to the developer.
The method shown in fig. 2 is further described with reference to fig. 3 to 5 in conjunction with the specific embodiment.
FIG. 3 schematically illustrates a system relationship diagram of a file management application according to an embodiment of the present disclosure.
As shown in FIG. 3, the system relationship diagram is shown for example for a part of functional modules of a desktop file management application constructed based on the above-mentioned Electron open source software, and as can be obtained from FIG. 3, the file management application can comprise three major parts, namely a view layer for completing various interactions, a node layer for taking charge of file operations and network requests, and an object storage part.
According to the embodiment shown in fig. 3, the view interaction page may be represented as a view layer (view layer) in fig. 3, where the view layer may be implemented by, for example, a react (a front-end development language) technology, and the functions of the view layer may include, for example, implementing various interactions in file management application software, and so on. The application functions may include, for example, functions corresponding to the view layer, the node layer, and the object storage portion in fig. 3, where the node layer may be implemented by, for example, node.js (a development platform for enabling JavaScript to run on a server), and the functions of the node layer may include, for example, implementing creation, management, downloading of a local file, and so on. The data storage may be represented, for example, as an object storage module in fig. 3, which may be implemented, for example, using various cloud storage platforms (including, for example, seven Niu Yun, etc.), and the functions of the object storage module may include, for example, implementing local file synchronization to the cloud, providing download services, and so on. The Inter-process communication may be, for example, inter-process communication based on an Electron using IPC (Inter-Process Communication, inter-process communication or Inter-process communication, which refers to a process in which two processes exchange data).
It should be noted that in the process of selecting a cloud platform for implementing the object storage module, by selecting an appropriate cloud storage platform (e.g., seven Niu Yun), a rich SDK (Software Development Kit, i.e., a software development kit) may be used, so that file updating may be more timely and accurate.
According to the above embodiment of the present disclosure, the above file management application construction process may further include, for example, obtaining a rich text editor of a third party open source, and using the rich text editor as a lightweight markup language editor of the file management application.
According to the embodiment shown in fig. 3, the lightweight markup language editor (i.e., markdown editor) described above can be used, for example, to implement the construction of the markdown management software of fig. 3.
Fig. 4 schematically illustrates a system flow diagram of a file management application according to an embodiment of the present disclosure.
As shown in fig. 4, the illustrated process includes, for example, an application construction process including, for example, operations S401 to S405 and a data processing process in the application including, for example, operations S406 to S408.
In operation S401, an application system is determined.
According to an embodiment of the present disclosure, the application system may be determined as a system corresponding to a file management application as shown in fig. 3, for example.
It should be noted that, the file management application is only a specific implementation manner determined in this embodiment, and in practical application, the application system may be determined as other systems, and the corresponding system may be configured by executing operations corresponding to operations S402 to S408 on the corresponding system, for example.
In operation S402, an item is constructed.
According to the embodiment of the disclosure, the construction process of the file management application system may include, for example, a process of constructing a project (i.e., developing a file management application) by creating a reaction project, introducing the Electron, and performing project configuration using the Electron as a main body and using the reaction as a Web application of a view layer.
According to embodiments of the present disclosure, in the above-described build process, creation of an application window, and various modules providing native applications, may be implemented, for example, by an Electron host process, with a browser environment provided by an Electron rendering process.
In operation S403, the process communicates.
According to an embodiment of the present disclosure, for the above-described file management application system, inter-process communication may be implemented using IPC based on electronics, for example.
In operation S404, development of static pages for respective functional modules.
According to the embodiment of the disclosure, the static page is, for example, the view layer in the file management application system, and this operation may be implemented by, for example, a react technology. In this operation (i.e. when building the view layer), simple interface drawing may be implemented using, for example, SVG (a language describing two-dimensional graphics and drawing programs using XML) or Canvas (an element of HTML5, drawing images on web pages using JavaScript) of HTML, and simple animation (animation effect) may be implemented using, for example, CSS Animations (an animation function in CSS) or Web Animations API.
In operation S405, a markdown editor.
According to the embodiment of the disclosure, in order to further improve the functions of the file management application system, in the construction process, for example, a rich text editor with a third party open source may be selected to be used as a markdown editor, and construction of other single page applications may be completed in combination with compact.
Based on the markdown editor, the above operation S202 may include, for example, editing a local file based on a lightweight markup language editor (i.e., a markdown editor), and storing the local file to a preset web space using a cross-platform desktop application development tool (e.g., an Electron) to call an interface (API) related to a storage function, according to an embodiment of the present disclosure.
According to an embodiment of the disclosure, the preset network space may be determined according to an account number of a user, and the system may allocate the same or different network spaces to different users according to the user account number.
In operation S406, the application state and the application data stream are analyzed and processed.
According to the embodiment of the disclosure, due to the unidirectional data flow characteristic of the reaction, the data flow in the file management application system is transmitted to each component from top to bottom, and the data processing method can be added into the actual file management application App by a callback function method, and the data processing can be, for example, adding, deleting, checking and the like in variables created in the JavaScript running environment.
In operation S407, the data is persisted.
According to the embodiment of the disclosure, the data in the file management application system can be saved by using an Electron-store, and based on the data, a simpler scheme for data persistence can be provided for the file management application App.
According to a specific embodiment of the present disclosure, this operation may be manifested, for example, by storing the file created or modified in the local or markdown editor in a particular location (i.e., the preset web space described above) so that the location may be directly accessed to use the file stored in the location the next time the application is opened. In an actual application scenario, after a user applies for an account in the file management application system, the system allocates a specific network space (i.e. the preset network space) for the user, and when the user logs in the file management application system by using the account, the user can access the specific network space, and the access process can include, for example, a file created locally by the user and synchronously uploaded to the specific network space, and for the file completed by synchronous uploading, the user can log in the account on other devices, access the specific network space, and perform operations such as adding, deleting and checking the file in the specific network space.
In operation S408, the cloud file inversely synchronizes data to the local.
According to an embodiment of the present disclosure, the cloud file may be, for example, a file that is stored in the specific network space after being synchronously uploaded into the specific network space in the local or markdown editor. The process of reversely synchronizing the data to the local is, for example, a process of downloading the cloud file to the local.
According to an embodiment of the present disclosure, for the data processing flow in the application (i.e., operations S406 to S408), to implement the persistent storage of the data of the cloud file, for example, a cloud service technology that is more suitable for the embodiment may be selected from the current internet environment, so as to design an object storage platform of the file management application, so as to implement storage, uploading and downloading of static resources (such as the file) through the object storage platform.
According to a specific embodiment of the disclosure, for example, a flattened cloud service platform may be selected as the object storage platform, where the object name of the platform may be used as a domain name address, and in practical application, once the object noun is set to a public state, all users may access the object storage platform, including processing files in a corresponding network space by using a login account.
Through the above embodiments of the present disclosure, network access control, access control of a local file system, and the like may be supported by node.js, interface drawing and dynamic effects may be implemented using basic HTML and CSS, and through an Electron encapsulation system API, a user may directly call the node.js API in a page, and may directly interact with a bottom operating system, so that the above file management application with the function of automatically downloading cloud files may be implemented by parsing an Electron. Meanwhile, due to the introduction of an Electron technology, the defects of node. Js and front-end technology in accessing system API (application program interface) can be overcome, and the problems that design and codes cannot be separated, safety technology is complex, development and application cannot cross-platform and the like in the traditional desktop application development can be effectively solved, so that cross-platform desktop application can be developed more conveniently and rapidly based on the technologies.
According to an embodiment of the disclosure, the operation S202 may further be represented as, for example, obtaining a cloud file to be downloaded in response to the download request, where the cloud file to be downloaded includes a local file that already exists locally and a file that does not exist locally, updating the local file to be downloaded when the cloud file to be downloaded already exists locally, and storing the cloud file to be downloaded to the local area when the cloud file to be downloaded does not exist locally.
According to the embodiment of the disclosure, the obtaining the cloud file to be downloaded in response to the downloading request may further include obtaining a cloud file stored in a preset network space, traversing a local file, comparing the cloud file with the local file to obtain a target cloud file different from the local file, and taking the target cloud file as the cloud file to be downloaded.
According to an embodiment of the disclosure, the cloud file is, for example, a file of the latest version that is always saved for the user, and the target cloud file is, as a cloud file that is different from the file attribute, the file content, and/or other related information of the local file, for example, a file that has an update with respect to the local file, or may be a file that does not exist in the local file.
Fig. 5 schematically illustrates a file automatic download workflow diagram of a file management application according to an embodiment of the present disclosure.
As shown in fig. 5, a process for implementing the reverse synchronization of the cloud file to the local in operation S408 is shown, that is, a process for implementing automatic file downloading according to the file management application system is shown, where the process may include operations S501 to S509, for example.
In operation S501, a file list is acquired.
According to an embodiment of the disclosure, the file list obtained in the operation is, for example, a cloud file stored in the object storage platform or a cloud file list constructed by related attributes or information of the cloud file.
In operation S502, a file to be downloaded is generated by filtering in comparison with the local file.
According to an embodiment of the present disclosure, before performing this operation, it is necessary to first acquire a local file or a local file list constructed from relevant attributes or information of the local file. The operation is, for example, comparing the cloud file (or the cloud file list) obtained in the operation S501 with the local file (or the local file list) obtained in the operation, and generating a file to be downloaded (i.e. the target cloud file) by filtering out the cloud file completely consistent with the local file (including the file content, the attribute and other information), where the file to be downloaded may be represented in a file set or list.
In operation S503, an array of downloaded files is generated and run using the filtered list.
According to an embodiment of the present disclosure, the filtered list is, for example, a file set or a list generated in operation S502 and used for representing a file to be downloaded, and the filtered list may be stored in an array manner, for example, so as to perform a subsequent running process on the list (or a cloud file corresponding to the list) in an array manner, where the running process may include, for example, a network request process and a data (such as a file) request process. The data request process may include a plurality of data request processes, and each data request process may be used to request or acquire one or one piece of data, for example.
In operation S504, a new file list is generated.
According to an embodiment of the present disclosure, this operation is performed, for example, in the case that the network request procedure in operation S503 is successful, or may be performed in the case that both the network request procedure and the data request procedure in operation S503 are successful, so as to generate a new file list, that is, the cloud file to be downloaded or a corresponding list thereof, which may exist, for example, in the form of a file, or may also exist in the form of a list constructed by related attributes or information of the file.
It should be noted that, in the case where the network request process is successful and part of the data request process is unsuccessful, for example, the data or file corresponding to the request of the part of the unsuccessful data request process may be ignored, and the rest of the data request process may be continuously executed, and in the case where the rest of the data request process is successful, the new file list may be set up according to the data or file execution ground corresponding to the request of the rest of the data request process, where the new file list may not be consistent with the filtered list in operation S503. And the new file list produced in the case where both the network request process and the data request process are successful is, for example, identical to the filtered list in operation S503 described above.
In operation S505, the download fails.
According to an embodiment of the present disclosure, this operation is performed, for example, in the case that the network request procedure in operation S503 fails, and this execution procedure may be, for example, prompting that the download fails by means of a pop-up information box.
In operation S506, whether the data already exists locally.
According to the embodiment of the present disclosure, this operation is used as a determining process, for example, to check whether there is data in the new file list generated in the above operation S504 (i.e., the cloud file to be downloaded) in the local file list, so as to determine whether the local file needs to be updated or a new file is directly inserted into the local file.
In operation S507, the existing record is updated.
In operation S508, the local data and the interface are updated.
According to the embodiment of the disclosure, the operations S507 to S508 are, for example, executed if the determination result of the operation S506 is yes (i.e., the cloud file to be downloaded already exists locally), the operations of downloading the cloud file to be downloaded and updating the information of the existing local file (for example, updating the corresponding local file to the cloud file) may be executed in the operation S507, and the operations of updating the local file and the interface may be executed in the operation S508.
In operation S509, a new record is inserted.
According to the embodiment of the disclosure, the operation is performed, for example, if the determination result in the operation S506 is no (i.e., there is no cloud file to be downloaded locally), and the operation may be performed, for example, to download the cloud file to be downloaded and store the cloud file locally.
Through the above embodiments of the present disclosure, the cloud updated file can be reversely synchronized (i.e., automatically downloaded) to the local.
According to the embodiment of the disclosure, an Electron cross-platform desktop development technology is adopted to construct a desktop file management application capable of realizing a file management function, by using JavaScript, CSS, HTML and other technologies, based on chromium (an engine behind a chrome browser of Google, which aims to create a safe, stable and quick general browser), node.js constructs a cross-platform application applicable to Mac, windows, linux and other systems, node.js can conveniently call system APIs, SQLite (a light database) is used for caching of local dictionary items, and complex calculation logic can be placed on a client, so that the pressure of a server is reduced, a front-end developer is more friendly, the development process of the front-end development is not influenced, and the development efficiency is further greatly improved.
Fig. 6 schematically illustrates a block diagram of a file management apparatus according to an embodiment of the present disclosure.
As shown in fig. 6, the file management apparatus 600 includes a calling module 610 and a management module 620.
A calling module 610, configured to call a file management application, where the file management application is built based on a cross-platform desktop application development tool with a function of calling a native system interface.
The management module 620 is configured to perform file management by using a file management application.
According to the embodiment of the disclosure, the file management application is constructed based on a cross-platform desktop application development tool with a function of calling a native system interface; and the technical means for managing the files by using the file management application, because the introduced cross-platform desktop application development tool can directly call the system interface, the obtained file management application constructed based on the cross-platform desktop application development tool can be operated on each platform, at least partially, the technical problem that the desktop application and software developed in the traditional mode cannot be flexibly operated on each platform is solved, and further, the technical effects of optimizing the development effect and improving the user satisfaction are achieved.
According to an embodiment of the present disclosure, a construction process of a file management application in the above-described file management apparatus includes a construction unit, a communication unit, and a first storage unit.
And the construction unit is used for calling an interface of the native system to construct an application program by using the cross-platform desktop application development tool so as to construct a view interaction page and an application function of the file management application.
And the communication unit is used for realizing inter-process communication of the file management application when data processing is performed based on the cross-platform desktop application development tool.
And the first storage unit is used for calling an interface related to the storage function by using the cross-platform desktop application development tool to realize data storage in the file management application.
According to an embodiment of the present disclosure, the process of constructing the file management application in the above-described file management apparatus may further include a first obtaining unit and a defining unit.
The first acquisition unit is used for acquiring the rich text editor of the third party open source.
And the definition unit is used for taking the rich text editor as a lightweight markup language editor of the file management application.
According to an embodiment of the present disclosure, the management module includes an editing unit and a second storage unit.
And the editing unit is used for editing the local file based on the lightweight markup language editor.
And the second storage unit is used for calling an interface related to the storage function by using the cross-platform desktop application development tool to store the local file into a preset network space.
According to an embodiment of the present disclosure, the management module may further include a second obtaining unit, an updating unit, and a third storage unit.
The second obtaining unit is used for responding to the downloading request and obtaining the cloud files to be downloaded, wherein the cloud files to be downloaded comprise local files existing in the local and files not existing in the local.
The updating unit is used for updating the local file into the cloud file to be downloaded under the condition that the cloud file to be downloaded exists locally.
The third storage unit is used for storing the cloud file to be downloaded to the local under the condition that the cloud file to be downloaded does not exist in the local.
According to an embodiment of the present disclosure, the second obtaining unit includes an obtaining subunit, a comparing subunit, and a defining subunit.
The acquisition subunit is used for acquiring the cloud files stored in the preset network space.
And the comparison subunit is used for traversing the local file, comparing the cloud file with the local file, and obtaining a target cloud file different from the local file.
And the definition subunit is used for taking the target cloud file as a cloud file to be downloaded.
According to an embodiment of the present disclosure, the preset network space is determined according to an account number of the user.
Any number of the modules, units, sub-units, or at least some of the functionality of any number of the modules, units, sub-units, or sub-units according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, units, sub-units according to embodiments of the present disclosure may be implemented as split into multiple modules. Any one or more of the modules, units, sub-units according to embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or in hardware or firmware in any other reasonable manner of integrating or packaging the circuits, or in any one of or in any suitable combination of three of software, hardware, and firmware. Or one or more of the modules, units, sub-units according to embodiments of the disclosure may be at least partially implemented as computer program modules which, when executed, may perform the corresponding functions.
For example, any number of the calling module 610 and the management module 620 may be combined in one module/unit/sub-unit or any number of the modules/units/sub-units may be split into a plurality of modules/units/sub-units. Or at least some of the functionality of one or more of these modules/units/sub-units may be combined with at least some of the functionality of other modules/units/sub-units and implemented in one module/unit/sub-unit. According to embodiments of the present disclosure, at least one of the invocation module 610 and the management module 620 may be implemented at least in part as hardware circuitry, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or in hardware or firmware, such as any other reasonable way of integrating or packaging circuitry, or in any one of or a suitable combination of three of software, hardware, and firmware. Or at least one of the calling module 610 and the management module 620 may be at least partially implemented as a computer program module which, when executed, performs the corresponding functions.
It should be noted that, in the embodiment of the present disclosure, the file management apparatus portion corresponds to the file management method portion in the embodiment of the present disclosure, and the description of the file management apparatus portion refers to the file management method portion specifically, and will not be described herein.
Fig. 7 schematically illustrates a block diagram of a computer system suitable for implementing the above-described methods, according to an embodiment of the present disclosure. The computer system illustrated in fig. 7 is merely an example, and should not be construed as limiting the functionality and scope of use of the embodiments of the present disclosure.
As shown in fig. 7, a computer system 700 according to an embodiment of the present disclosure includes a processor 701 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. The processor 701 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or an associated chipset and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), or the like. The processor 701 may also include on-board memory for caching purposes. The processor 701 may comprise a single processing unit or a plurality of processing units for performing different actions of the method flows according to embodiments of the disclosure.
In the RAM 703, various programs and data required for the operation of the system 700 are stored. The processor 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704. The processor 701 performs various operations of the method flow according to the embodiments of the present disclosure by executing programs in the ROM 702 and/or the RAM 703. Note that the program may be stored in one or more memories other than the ROM 702 and the RAM 703. The processor 701 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in the one or more memories.
According to an embodiment of the present disclosure, the system 700 may further include an input/output (I/O) interface 705, the input/output (I/O) interface 705 also being connected to the bus 704. The system 700 may also include one or more of an input section 706 including a keyboard, mouse, etc., an output section 707 including a Cathode Ray Tube (CRT), liquid Crystal Display (LCD), etc., and speaker, etc., a storage section 708 including a hard disk, etc., and a communication section 709 including a network interface card such as a LAN card, modem, etc., connected to the I/O interface 705. The communication section 709 performs communication processing via a network such as the internet. The drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read therefrom is mounted into the storage section 708 as necessary.
According to embodiments of the present disclosure, the method flow according to embodiments of the present disclosure may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 709, and/or installed from the removable medium 711. The above-described functions defined in the system of the embodiments of the present disclosure are performed when the computer program is executed by the processor 701. The systems, devices, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
The present disclosure also provides a computer-readable storage medium that may be included in the apparatus/device/system described in the above embodiments, or may exist alone without being assembled into the apparatus/device/system. The computer-readable storage medium carries one or more programs which, when executed, implement methods in accordance with embodiments of the present disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. Such as, but not limited to, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
For example, according to embodiments of the present disclosure, the computer-readable storage medium may include ROM 702 and/or RAM 703 and/or one or more memories other than ROM 702 and RAM 703 described above.
Embodiments of the present disclosure also include a computer program product comprising a computer program comprising program code for performing the methods provided by the embodiments of the present disclosure, the program code for causing an electronic device to implement the file management methods provided by the embodiments of the present disclosure when the computer program product is run on the electronic device.
The above-described functions defined in the system/apparatus of the embodiments of the present disclosure are performed when the computer program is executed by the processor 701. The systems, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
In one embodiment, the computer program may be based on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed over a network medium in the form of signals, downloaded and installed via the communication section 709, and/or installed from the removable medium 711. The computer program may comprise program code that is transmitted using any appropriate network medium, including but not limited to wireless, wireline, etc., or any suitable combination of the preceding.
According to embodiments of the present disclosure, program code for performing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, such computer programs may be implemented in high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. Programming languages include, but are not limited to, such as Java, c++, python, "C" or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. Those skilled in the art will appreciate that the features recited in the various embodiments of the disclosure and/or in the claims may be combined in various combinations and/or combinations, even if such combinations or combinations are not explicitly recited in the disclosure. In particular, the features recited in the various embodiments of the present disclosure and/or the claims may be variously combined and/or combined without departing from the spirit and teachings of the present disclosure. All such combinations and/or combinations fall within the scope of the present disclosure.
The embodiments of the present disclosure are described above. These examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the embodiments cannot be used advantageously in combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be made by those skilled in the art without departing from the scope of the disclosure, and such alternatives and modifications are intended to fall within the scope of the disclosure.

Claims (10)

1. A file management method comprising:
invoking a file management application, wherein the file management application is built based on a cross-platform desktop application development tool with a function of invoking a native system interface, and the building process comprises the following steps:
The interface construction application program of the native system is called by using the cross-platform desktop application development tool so as to construct a view interaction page and application functions of the file management application, wherein the file management application comprises a view layer and a node layer, the view layer realizes an interface drawing function based on a front-end development language, and the node layer realizes a file operation function based on a development platform running on a server;
Implementing inter-process communication of the file management application in data processing based on the cross-platform desktop application development tool, and
Invoking an interface associated with a storage function using the cross-platform desktop application development tool to enable data storage in the file management application, and
And managing the file by using the file management application.
2. The method of claim 1, wherein the file management application building process comprises:
Acquiring a rich text editor of a third party open source, and
And taking the rich text editor as a lightweight markup language editor of the file management application.
3. The method of claim 2, wherein utilizing the file management application for file management comprises:
editing a local file based on the lightweight markup language editor, and
And calling an interface related to a storage function by using the cross-platform desktop application development tool to store the local file into a preset network space.
4. The method of claim 1, wherein utilizing the file management application for file management comprises:
Responding to a downloading request, and acquiring a cloud file to be downloaded, wherein the cloud file to be downloaded comprises a local file existing in the local and a file not existing in the local;
Under the condition that the cloud file to be downloaded exists locally, updating the local file into the cloud file to be downloaded, and
And storing the cloud file to be downloaded to the local under the condition that the cloud file to be downloaded does not exist in the local.
5. The method of claim 4, wherein obtaining the cloud file to be downloaded in response to the download request comprises:
acquiring a cloud file stored in a preset network space;
traversing the local file, comparing the cloud file with the local file to obtain a target cloud file different from the local file, and
And taking the target cloud file as the cloud file to be downloaded.
6. A method according to claim 3, wherein the preset network space is determined according to a user account.
7. A document management apparatus comprising:
The file management application is constructed based on a cross-platform desktop application development tool with the function of calling a native system interface, and comprises a view layer and a node layer, wherein the view layer realizes an interface drawing function based on a front-end development language, and the node layer realizes a file operation function based on a development platform running on a server end
And the management module is used for managing the files by using the file management application.
8. A computer system, comprising:
One or more processors;
a memory for storing one or more programs,
Wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1 to 6.
9. A computer readable storage medium having stored thereon executable instructions which when executed by a processor cause the processor to implement the method of any of claims 1 to 6.
10. A computer program product comprising computer executable instructions for implementing the method of any one of claims 1 to 6 when executed.
CN202110122064.9A 2021-01-28 2021-01-28 File management method, device, computer system and computer readable storage medium Active CN113778942B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110122064.9A CN113778942B (en) 2021-01-28 2021-01-28 File management method, device, computer system and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110122064.9A CN113778942B (en) 2021-01-28 2021-01-28 File management method, device, computer system and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113778942A CN113778942A (en) 2021-12-10
CN113778942B true CN113778942B (en) 2025-01-14

Family

ID=78835580

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110122064.9A Active CN113778942B (en) 2021-01-28 2021-01-28 File management method, device, computer system and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113778942B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109327526A (en) * 2018-10-29 2019-02-12 杭州电子科技大学 Portable storage device based on cloud storage
CN110109718A (en) * 2019-03-26 2019-08-09 阿里巴巴集团控股有限公司 A kind of application programming interfaces call method and device
CN111045990A (en) * 2019-11-07 2020-04-21 武汉融卡智能信息科技有限公司 Document management system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170206064A1 (en) * 2013-03-15 2017-07-20 JIBO, Inc. Persistent companion device configuration and deployment platform
US20200007615A1 (en) * 2017-06-05 2020-01-02 Umajin Inc. Server kit configured to execute custom workflows and methods therefor
CN108920181A (en) * 2018-06-29 2018-11-30 北京拜克洛克科技有限公司 Document handling method, device and electronic equipment
CN110347383B (en) * 2019-06-28 2023-11-14 深圳市中农易讯信息技术有限公司 Front-end development method and device for cross-platform desktop application
CN110874236B (en) * 2019-11-13 2023-04-07 中国建设银行股份有限公司 Cross-platform application device, terminal and storage medium
CN112256284A (en) * 2020-09-30 2021-01-22 北京沃东天骏信息技术有限公司 Development environment configuration method and device, electronic equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109327526A (en) * 2018-10-29 2019-02-12 杭州电子科技大学 Portable storage device based on cloud storage
CN110109718A (en) * 2019-03-26 2019-08-09 阿里巴巴集团控股有限公司 A kind of application programming interfaces call method and device
CN111045990A (en) * 2019-11-07 2020-04-21 武汉融卡智能信息科技有限公司 Document management system

Also Published As

Publication number Publication date
CN113778942A (en) 2021-12-10

Similar Documents

Publication Publication Date Title
US10015264B2 (en) Generalized proxy architecture to provide remote access to an application framework
US9122658B2 (en) Webpage display system leveraging OSGi
US20210208854A1 (en) System and method for enhancing component based development models with auto-wiring
CN107451162B (en) Network resource access device, hybrid device and method
JP6129153B2 (en) Method and system for providing a state model of an application program
US9952835B2 (en) Generation of hybrid enterprise mobile applications in cloud environment
CN111221521A (en) Method and device for generating log code, computer system and readable storage medium
US20090199213A1 (en) Automatic Connections Between Application Components
CN113010827B (en) Page rendering method and device, electronic equipment and storage medium
CN105069132A (en) Webpage implementation method based on static shell
US9491266B2 (en) Representational state transfer communications via remote function calls
CN110895471A (en) Installation package generation method, device, medium and electronic device
CN111324833A (en) Page display method, apparatus, electronic design and computer readable medium
CN115982491A (en) Page updating method and device, electronic equipment and computer readable storage medium
CN113127361B (en) Application development method and device, electronic equipment and storage medium
CN113656041A (en) Data processing method, device, equipment and storage medium
CN113342450A (en) Page processing method and device, electronic equipment and computer readable medium
CN113495730B (en) Resource package generation and parsing method and device
US9934019B1 (en) Application function conversion to a service
CN113761871A (en) Rich text rendering method and device, electronic equipment and storage medium
CN118331660B (en) Interface calling method, device, equipment and storage medium
CN113760252A (en) Data visualization method, device, computer system and readable storage medium
CN113778393A (en) Component generation method, device, computer system and computer-readable storage medium
CN114756228A (en) Page processing method, apparatus, device and storage medium
CN113778942B (en) File management method, device, computer system and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant