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

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

Info

Publication number
CN113778942A
CN113778942A CN202110122064.9A CN202110122064A CN113778942A CN 113778942 A CN113778942 A CN 113778942A CN 202110122064 A CN202110122064 A CN 202110122064A CN 113778942 A CN113778942 A CN 113778942A
Authority
CN
China
Prior art keywords
file
file management
application
management application
cloud
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.)
Pending
Application number
CN202110122064.9A
Other languages
Chinese (zh)
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/CN113778942A/en
Publication of CN113778942A publication Critical patent/CN113778942A/en
Pending legal-status Critical Current

Links

Images

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 apparatus, a computer system, a computer-readable storage medium, and a computer program product. The file management method comprises the following steps: 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 comprises the following steps: calling an interface of a native system by using a cross-platform desktop application development tool to construct an application program so as to construct a view interaction page and an application function of the file management application; inter-process communication of the file management application during data processing is realized based on a cross-platform desktop application development tool; calling an interface related to a storage function by using a cross-platform desktop application development tool to realize data storage in the file management application; and performing file management using the file management application.

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 technologies, and in particular, 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 the product development link becomes more and more important. Desktop development is an important expression form of front-end development technology, desktop applications and software generated by the desktop development are deeply involved in the aspects of daily life, and the desktop development is especially important for the design work of development, operation, maintenance and the like of the applications and the software in order to meet the requirements of users.
In the process of realizing the concept disclosed by the invention, the inventor finds that at least the following problems exist in the related technology, and desktop applications 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 the foregoing, 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 present disclosure provides a file management method, including: 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 comprises the following steps: calling an interface of the native system by using the cross-platform desktop application development tool to construct an application program so as to construct a view interaction page and an application function of the file management application; the inter-process communication of the file management application during data processing is realized based on the cross-platform desktop application development tool; 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 using the file management application.
According to an embodiment of the present disclosure, the process of constructing the file management application includes: acquiring a rich text editor sourced by a third party; and using the rich text editor as a lightweight markup language editor for the file management application.
According to an embodiment of the present disclosure, performing file management using the file management application includes: editing a local file based on the lightweight markup language editor; and calling an interface related to a storage function by using the cross-platform desktop application development tool to store the local file to a preset network space.
According to an embodiment of the present disclosure, performing file management using the file management application includes: responding to a downloading request, and acquiring a cloud file to be downloaded, wherein the cloud file to be downloaded comprises a local file which exists locally and a file which does not exist locally; under the condition that the cloud file to be downloaded already exists in the local area, updating the local file into the cloud file to be downloaded; and under the condition that the cloud file to be downloaded does not exist in the local place, storing the cloud file to be downloaded to the local place.
According to the embodiment of the disclosure, responding to the downloading request, acquiring the cloud file to be downloaded comprises: acquiring a cloud file stored in a preset network space; traversing a local file, and 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 the embodiment of the disclosure, the preset network space is determined according to the account of the user.
Another aspect of the present disclosure provides a file management apparatus including: the system comprises a calling module, a file management module and a file management module, wherein the calling module is used for calling a file management application, and the file management application is constructed on the basis of a cross-platform desktop application development tool with a function of calling a native system interface; and the management module is used for managing the files by utilizing the file management application.
Another aspect of the present disclosure provides a computer system comprising: one or more processors; 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 for implementing the file management method as described above when executed.
Another aspect of the disclosure provides a computer program product comprising computer executable instructions for implementing the file management method as described above when executed.
According to the embodiment of the disclosure, a calling file management application is adopted, wherein the file management application is constructed on the basis of a cross-platform desktop application development tool with a function of calling a native system interface; the introduced cross-platform desktop application development tool can directly call the system interface, and the obtained file management application constructed based on the introduced cross-platform desktop application development tool can run on each platform, so that the technical problem that the desktop application and software developed in the traditional mode cannot flexibly run on each platform is at least partially solved, and the technical effects of optimizing the development effect and improving the user satisfaction degree are further achieved.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments of the present disclosure 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 shows a flow chart of a file management method according to an embodiment of the present disclosure;
FIG. 3 schematically illustrates a system relationship diagram for a file management application according to an embodiment of the present disclosure;
FIG. 4 schematically illustrates a system flow diagram for a file management application according to an embodiment of the present disclosure;
FIG. 5 schematically illustrates a file automatic download workflow diagram for a file management application according to an embodiment of the present disclosure;
FIG. 6 schematically shows 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 method, 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 illustrative only 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 disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not 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 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 is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have 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 convention analogous to "A, B or at least one of C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B or C" would include but not be limited to systems that have 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 hypertext and HTTP based, global, dynamically interactive, cross-platform, distributed graphical information system. The network service is built on the Internet, and can provide a graphical and easily-accessible visual interface for a browser to search and browse information on the Internet, wherein documents and hyperlinks can organize information nodes on the Internet into a mutually-associated mesh structure.
With the richness of Web application functions, the front-end technology can easily realize a beautiful and easy-to-use interface, and the creation of desktop applications by using the Web technology becomes the mainstream.
The inventor finds that the traditional desktop development technology, such as the development of windows desktop software, is preferred in the process of realizing the concept disclosed by the invention, and a NET platform has a plurality of languages which can be selected: VC + +,. NET, C #, etc., however, the interfaces developed by these technologies are not beautiful, resulting in low user satisfaction. Meanwhile, when the technologies are used for developing applications, the design and the codes cannot be separated, and the current mainstream development technology is not met. Moreover, the application security technologies developed by these technologies are complex and have insignificant effects, and cannot be used across platforms, and because of the defects and performance problems of the NET for resource management, the development efficiency and the operation efficiency of the application 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 on the basis of a cross-platform desktop application development tool with a function of calling a native system interface; and performing file management using the file management application.
Fig. 1 schematically illustrates an exemplary system architecture 100 to which a file management method may be applied, according to an embodiment of the disclosure. It should be noted that fig. 1 is only an example of a system architecture to which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, and does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments or scenarios.
As shown in fig. 1, the system architecture 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired and/or wireless communication links, and so forth.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal apparatuses 101, 102, 103 may have the above-described file management application installed thereon.
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, 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 device 101, 102, 103. The background management server may analyze and perform other processing on the received data such as the user request, and feed back a processing result (e.g., a webpage, 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 executed by the terminal device 101, 102, or 103, or may also be executed by another terminal device different from the terminal device 101, 102, or 103. Accordingly, the file management apparatus provided by the embodiment of the present disclosure may also be disposed in the terminal device 101, 102, or 103, or in another terminal device different from the terminal device 101, 102, or 103. Alternatively, the file management method provided by the embodiments of the present disclosure may be generally performed by the server 105. Accordingly, the file management apparatus provided by the embodiment of the present disclosure may be generally disposed in the server 105. The file management method provided by the embodiment of the present disclosure may also be executed 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 embodiment of the present disclosure may also be disposed in a server or a server cluster different from the server 105 and 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 apparatuses 101, 102, or 103 (for example, but not limited to, the terminal apparatus 101), or stored on an external storage apparatus and may be imported into the terminal apparatus 101. Then, the terminal device 101 may locally execute the file management method provided by the embodiment of the present disclosure, or send the file management application to another terminal device, server, or server cluster, and execute the file management method provided by the embodiment of the present disclosure by another terminal device, server, or server cluster that receives 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 shows 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 to 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 building the file management application in operation S201 described above may include operations S201-1 to S201-3, for example.
In operation S201-1, an interface of the native system is called by using a cross-platform desktop application development tool to construct an application program, so as to implement construction of a view interaction page and an application function of the file management application.
In operation S201-2, inter-process communication of the file management application is achieved when data processing is performed based on the cross-platform desktop application development tool.
In operation S201-3, data storage in the file management application is implemented by calling an interface related to a storage function using a cross-platform desktop application development tool.
In operation S202, file management is performed using a file management application.
According to the embodiment of the disclosure, the file management application is, for example, software with file management and editing functions, and in the software, for example, a new file can be created, a local file can be poured, various files can be managed, the files can be edited by an editor, and a cloud file can be automatically downloaded to the local. The cross-platform desktop application development tool can be, for example, Electron open source software. The electronic is an open source framework jointly maintained by an active community consisting of a GitHub and a plurality of contributors, system APIs (application program interfaces) can be encapsulated inside the electronic, so that the system APIs can be accessed directly by using JavaScript in the application development process, namely, cross-platform desktop applications can be easily constructed by using the function of calling the native system interface of the electronic and combining the traditional front-end technology.
Through the embodiment of the disclosure, one-character file management and editing software is designed based on the intercommunication of the API module provided by the Electron open source software and the system API, the method has the characteristics of convenience, rapidness and cross-platform, and because the Electron provides rich API, convenience is provided for developers in the application development process, and the method is more friendly to the developers.
The method shown in fig. 2 is further described with reference to fig. 3-5 in conjunction with specific embodiments.
FIG. 3 schematically shows a system relationship diagram of a file management application according to an embodiment of the disclosure.
As shown in fig. 3, the system relationship diagram is, for example, a part of functional module display of a desktop file management application constructed based on the above Electron open source software, which can be obtained from fig. 3, and the file management application may include, for example, three major parts: a view layer for completing various interactions, a node layer for file operation and network request 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, for example, the view layer may be implemented by a react (a front-end development language) technology, and the function of the view layer may include, for example, implementing various interactions in the file management application software. The application functions may include, for example, functions corresponding to a view layer, a node layer, and an object storage part in fig. 3, where the node layer may be implemented by a node. For example, the data storage may be represented as an object storage module in fig. 3, which may be implemented using various cloud storage platforms (including, for example, a heptad cloud, etc.), and functions of the object storage module may include, for example, implementing local file synchronization to a cloud, providing a download service, and the like. The Inter-Process Communication may be performed by, for example, an Electron system using IPC (Inter-Process Communication, cross-Process Communication, or 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 a suitable cloud storage platform (such as a seven-cow cloud), a rich SDK (Software Development Kit) can be used, so that file update can be more timely and accurate.
According to the above embodiment of the present disclosure, the building process of the file management application may further include: acquiring a rich text editor sourced by a third party; and using the rich text editor as a lightweight markup language editor for the file management application.
According to the embodiment shown in fig. 3, the above-mentioned lightweight markup language editor (i.e. markdown editor) can be used to implement the construction of markdown management software in fig. 3, for example.
FIG. 4 schematically shows a system flow diagram of a file management application according to an embodiment of the disclosure.
As shown in fig. 4, the illustrated flow includes, for example, an application building flow and a data processing flow in the application, where the application building flow includes, for example, operations S401 to S405, and the data processing flow in the application includes, 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 the file management application as shown in fig. 3, for example.
It should be noted that the file management application is only one specific implementation determined in this embodiment, and in practical applications, the application system may also be determined as another system, for example, and the corresponding system may be constructed by performing operations corresponding to operations S402 to S408 on the corresponding system.
In operation S402, a project is constructed.
According to an embodiment of the present disclosure, the building process of the file management application system may include, for example: the method comprises the steps of taking an Electron as a main body, using a act as a Web application program of a view layer, creating a act project, introducing the Electron, and configuring the project, so that the project construction (namely the development of the file management application) process can be completed.
According to an embodiment of the present disclosure, in the above building process, for example, creation of an application window may be implemented by an Electron host process, and various modules providing native applications, and a browser environment is provided by an Electron rendering process.
In operation S403, the processes communicate.
According to an embodiment of the present disclosure, for the file management application system, inter-process communication may be realized using IPC based on Electron, for example.
In operation S404, development of a static page for each function module.
According to the embodiment of the present disclosure, the static page is, for example, a view layer in the file management application system, and the operation may be implemented by a act technology, for example. In this operation (i.e., when building a view layer), simple interface drawing can be implemented using, for example, SVG (a language that uses XML to describe two-dimensional graphics and drawing programs) in HTML or Canvas (an element of HTML5 that uses JavaScript to draw images on Web pages), and simple animation (animation effect) can be implemented using, for example, CSS animation (an animation function in CSS) or Web animation 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 open by a third party can be selected as a markdown editor, and construction of other single-page applications is completed in combination with acts.
According to an embodiment of the present disclosure, based on the markdown editor, the operation S202 may include, for example: editing the local file based on a lightweight markup language editor (i.e., markdown editor); and calling an interface (API) related to a storage function by using a cross-platform desktop application development tool (such as an Electron) to store the local file into the preset network space.
According to the embodiment of the disclosure, the preset network space may be determined according to an account of a user, for example, and the system may allocate the same or different network spaces to different users according to the user account.
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 feature of the act unidirectional data flow, the data flow in the file management application system is transferred to each component from top to bottom, and a data processing method can be added to an actual file management application App by a callback function method, and the data processing can be, for example, processing such as adding, deleting, modifying, checking and the like in a variable created in a 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, for example, so that a simpler scheme for data persistence can be provided for the file management application App.
According to a specific embodiment of the present disclosure, the operation may be represented as: files created or modified in a local or markdown editor are stored in a specific location (i.e. the above-mentioned pre-set network space) so that the location can be directly accessed for using the files stored in the location the next time the application is started. In an actual application scenario, after a user applies for an account in the file management application system, the system may allocate a specific network space (i.e. the preset network space) to the user, and after the user logs in the file management application system by using the account, the user may access the specific network space, where the access process may include: files created locally by a user can be synchronously uploaded to the specific network space; for the files which are synchronously uploaded, the user can log in the account on other equipment, access the specific network space, and perform operations such as increasing, deleting, modifying, checking and the like on the files in the specific network space.
In operation S408, the cloud file reversely synchronizes the data to the local.
According to an embodiment of the present disclosure, the cloud file may be, for example, a file created in a local or markdown editor, which is uploaded to the specific network space in synchronization and then stored in the specific network space. 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., the operations S406 to S408), in order to implement the data persistence storage of the cloud file, for example, a cloud service technology more suitable for this embodiment may be selected from a current internet environment, and an object storage platform of the file management application is designed, so as to implement storage, upload, and download of static resources (such as the files) through the object storage platform.
According to a specific embodiment of the present disclosure, for example, a flat cloud service platform may be selected as the object storage platform, and an object name of the platform may be used as a domain name address, for example, in practical applications, once the object name is set to be in a public state, all users may access the object storage platform, including processing files in a corresponding network space by logging in an account.
Through the embodiment of the disclosure, network access control, access control of a local file system and the like can be supported by node.js, interface drawing and dynamic effect can be realized by using basic HTML and CSS, a user can directly call the node.js API in a page through an Electron packaging system API and can directly interact with a bottom operating system, and therefore the file management application with the function of automatically downloading the cloud file can be realized by analyzing the Electron. Meanwhile, due to the introduction of the Electron technology, the defects in the aspect of accessing the system API by node.js and the front-end technology can be overcome, and the difficulties that the design and the code cannot be separated, the safety technology is complex, the development and the application cannot be cross-platform and the like in the traditional desktop application development can be effectively solved, so that the cross-platform desktop application can be more conveniently and rapidly developed based on the technologies.
According to an embodiment of the present disclosure, corresponding to the operation S408, the operation S202 may also be expressed as: responding to a downloading request, and acquiring a cloud file to be downloaded, wherein the cloud file to be downloaded comprises a local file which exists locally and a file which does not exist locally; under the condition that the cloud file to be downloaded already exists in the local area, updating the local file into the cloud file to be downloaded; and under the condition that the cloud file to be downloaded does not exist in the local place, storing the cloud file to be downloaded to the local place.
According to an embodiment of the present disclosure, the above responding to the download request, acquiring the cloud file to be downloaded may further include: acquiring a cloud file stored in a preset network space; traversing the local file, and 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 a cloud file to be downloaded.
According to an embodiment of the present disclosure, the cloud file is, for example, a file of a latest version that is always saved by a user, and the target cloud file is a cloud file that is different from file attributes, file contents, and/or other relevant information of the local file, for example, may be a file that is updated 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 for a file management application according to an embodiment of the present disclosure.
As shown in fig. 5, a process for implementing the cloud file reverse synchronization data in operation S408 to the local is shown, that is, a process for implementing automatic file downloading according to the file management application system is shown, and the process may include operations S501 to S509, for example.
In operation S501, a file list is acquired.
According to an embodiment of the present 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 relevant attributes or information of the cloud file.
In operation S502, the file to be downloaded is generated by filtering compared with the local file.
According to the embodiment of the present disclosure, before performing this operation, the local file or the local file list constructed by the relevant attribute or information of the local file needs to be acquired first. For example, the operation is to compare the cloud file (or cloud file list) obtained in operation S501 with the local file (or local file list) obtained in the present operation, and generate a file to be downloaded (i.e., the target cloud file) by filtering out the cloud file that is completely consistent with the local file (including file content, attribute, and other information that are all completely consistent), where the file to be downloaded may be represented in a file set or a list, for example.
In operation S503, an array of download files is generated using the filtered list and is executed.
According to an embodiment of the present disclosure, the filtered list is, for example, a file set or a list generated in the above operation S502 for representing files 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 cloud files corresponding to the list) in an array manner, where the running process may include, for example, a network request process and a data (e.g., file, etc.) request process. The data request process may include a plurality of data request processes, for example, and each data request process may be used to request or obtain one or more pieces of data, for example.
In operation S504, a new file list is generated.
According to an embodiment of the present disclosure, the operation is performed, for example, when the network request process in operation S503 is successful, or may be performed when both the network request process and the data request process in operation S503 are successful, so as to generate a new file list, that is, the above-mentioned cloud file to be downloaded or a corresponding list thereof, where the new file list may exist in the form of a file, for example, 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 that the network request process is successful and part of the data request process is unsuccessful, for example, the requested data or file corresponding to the part of the unsuccessful data request process may be ignored, and the remaining data request process may be continuously executed, and in the case that the remaining data request process is successful, the new file list may be inconsistent with the filtered list in operation S503 according to the requested data or file corresponding to the remaining data request process. 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, consistent with the filtered list in operation S503 described above.
In operation S505, the download fails.
According to the embodiment of the present disclosure, the operation is performed, for example, in a case where the network request procedure in operation S503 fails, and the performing procedure may be, for example, prompting the download failure by means of popping up an information box.
In operation S506, whether the data already exists locally.
According to the embodiment of the present disclosure, the operation is used as a determination process, for example, to check whether the local file list has data in the new file list (i.e., the cloud file to be downloaded) generated in the above operation S504, 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 an embodiment of the present disclosure, the operations S507 to S508 are, for example, executed when the determination result of the operation S506 is yes (that is, the cloud file to be downloaded already exists locally), in operation S507, for example, the operations of downloading the cloud file to be downloaded and updating information of the locally existing file (for example, updating the corresponding local file into the cloud file) may be executed, and in operation S508, for example, the operations of updating the local file and the interface may be executed.
In operation S509, a new record is inserted.
According to an embodiment of the present disclosure, the operation is, for example, executed if the determination result of the operation S506 is negative (that is, the cloud file to be downloaded does not exist locally), and the operation may, for example, be executed to download the cloud file to be downloaded and store the cloud file to the local.
Through the embodiment of the disclosure, the file updated by the cloud can be reversely synchronized (namely automatically downloaded) to the local.
Through the above embodiments of the present disclosure, a desktop file management application capable of implementing a file management function is constructed by adopting an Electron cross-platform desktop development technology, and through using technologies such as JavaScript, CSS, and HTML, based on a chrome (engine behind a chrome browser of Google, which is aimed at creating a safe, stable, and fast general browser), node.js constructs a cross-platform application applicable to systems such as Mac, Windows, and Linux, and can conveniently call a system API through node.js and use SQLite (a light database) to perform cache processing of local dictionary items, and can also place complex calculation logic on a client for performing, thereby reducing the pressure of a server, being more friendly to a front-end developer, and simultaneously, a development process of front-end development is not affected, thereby further greatly improving development efficiency.
Fig. 6 schematically shows 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.
And the calling module 610 is used for calling the 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 a management module 620, configured to perform file management by using a file management application.
According to the embodiment of the disclosure, a calling file management application is adopted, wherein the file management application is constructed on the basis of a cross-platform desktop application development tool with a function of calling a native system interface; the introduced cross-platform desktop application development tool can directly call the system interface, and the obtained file management application constructed based on the introduced cross-platform desktop application development tool can run on each platform, so that the technical problem that the desktop application and software developed in the traditional mode cannot flexibly run on each platform is at least partially solved, and the technical effects of optimizing the development effect and improving the user satisfaction degree are further achieved.
According to an embodiment of the present disclosure, the process of building the file management application in the above file management apparatus includes a building 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 utilizing the cross-platform desktop application development tool so as to realize the construction of the view interaction page and the application function of the file management application.
And the communication unit is used for realizing interprocess communication of the file management application during data processing based on the cross-platform desktop application development tool.
The first storage unit is used for calling an interface related to a storage function by using a cross-platform desktop application development tool to realize data storage in the file management application.
According to an embodiment of the present disclosure, the building process of the file management application in the file management apparatus may further include a first obtaining unit and a defining unit.
The first acquisition unit is used for acquiring a rich text editor sourced by a third party.
And the defining 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 a storage function by using a cross-platform desktop application development tool to store the local file to 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 storing 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 which already exist in the local and files which do not exist in the local.
And 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 already exists in the local.
And the third storage unit is used for storing the cloud file to be downloaded to the local place under the condition that the cloud file to be downloaded does not exist in the local place.
According to an embodiment of the present disclosure, the second acquiring unit includes an acquiring subunit, a comparing subunit, and a defining subunit.
And 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 the embodiment of the disclosure, the preset network space is determined according to the account of the user.
Any of the modules, units, sub-units, or at least part of the functionality of any of them according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, units and sub-units according to the embodiments of the present disclosure may be implemented by being split into a plurality of modules. Any one or more of the modules, units, sub-units according to the embodiments of the present disclosure may be implemented at least partially 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 may be implemented in any other reasonable manner of hardware or firmware by integrating or packaging a circuit, or in any one of three implementations of software, hardware, and firmware, or in any suitable combination of any of them. Alternatively, 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 and implemented in one module/unit/sub-unit, or any one of the modules/units/sub-units may be split into a plurality of modules/units/sub-units. Alternatively, at least part of the functionality of one or more of these modules/units/sub-units may be combined with at least part of the functionality of other modules/units/sub-units and implemented in one module/unit/sub-unit. According to an embodiment of the present disclosure, at least one of the invoking module 610 and the managing module 620 may be at least partially implemented 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 may be implemented in hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or in any one of three implementations of software, hardware, and firmware, or in any suitable combination of any of them. Alternatively, at least one of the calling module 610 and the managing module 620 may be implemented at least in part as a computer program module, which when executed, may perform a corresponding function.
It should be noted that the file management apparatus part in the embodiment of the present disclosure corresponds to the file management method part in the embodiment of the present disclosure, and the description of the file management apparatus part specifically refers to the file management method part, which is not described herein again.
FIG. 7 schematically illustrates a block diagram of a computer system suitable for implementing the above-described method, according to an embodiment of the present disclosure. The computer system illustrated in FIG. 7 is only one example and should not impose any limitations on the scope of use or functionality of embodiments of the disclosure.
As shown in fig. 7, a computer system 700 according to an embodiment of the present disclosure includes a processor 701, which 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 associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. 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 the different actions of the method flows according to embodiments of the present disclosure.
In the RAM 703, various programs and data necessary for the operation of the system 700 are stored. The processor 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. The processor 701 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM 702 and/or the RAM 703. It is noted that the programs may also be stored in one or more memories other than the ROM 702 and RAM 703. The processor 701 may also perform various operations of method flows 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 also 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 the following components connected to the I/O interface 705: an input portion 706 including a keyboard, a mouse, and the like; an output section 707 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 708 including a hard disk and the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. A 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 out therefrom is mounted into the storage section 708 as necessary.
According to embodiments of the present disclosure, method flows according to embodiments of the present disclosure may be implemented as computer software programs. 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 containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 709, and/or installed from the removable medium 711. The computer program, when executed by the processor 701, performs the above-described functions defined in the system of the embodiment of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. Examples may include, but are 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 present 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, a computer-readable storage medium may include the ROM 702 and/or the RAM 703 and/or one or more memories other than the ROM 702 and the RAM 703 described above.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the method provided by the embodiments of the present disclosure, when the computer program product is run on an electronic device, the program code being adapted to cause the electronic device to carry out the file management method provided by the embodiments of the present disclosure.
The computer program, when executed by the processor 701, performs the above-described functions defined in the system/apparatus of the embodiments of the present disclosure. The systems, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In one embodiment, the computer program may be hosted 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 in the form of a signal on a network medium, distributed, downloaded and installed via the communication section 709, and/or installed from the removable medium 711. The computer program containing program code may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In accordance with embodiments of the present disclosure, program code for executing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, these computer programs may be implemented using high level procedural and/or object oriented programming languages, and/or assembly/machine languages. The programming language includes, but is not limited to, programming languages such as Java, C + +, python, the "C" language, or the like. The program code may execute entirely on the user computing device, partly on the user device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, 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., through the internet using an internet service provider).
The flowchart 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 various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (10)

1. A file management method, comprising:
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 comprises the following steps:
calling an interface of the native system by using the cross-platform desktop application development tool to construct an application program so as to construct a view interaction page and an application function of the file management application;
the inter-process communication of the file management application during data processing is realized 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
and performing file management by using the file management application.
2. The method of claim 1, wherein the build process of the file management application comprises:
acquiring a rich text editor sourced by a third party; 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 file management with the file management application 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 to a preset network space.
4. The method of claim 1, wherein file management with the file management application 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 which exists locally and a file which does not exist locally;
under the condition that the cloud file to be downloaded already exists in the local area, updating the local file into the cloud file to be downloaded; and
and under the condition that the cloud file to be downloaded does not exist in the local place, storing the cloud file to be downloaded to the local place.
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 a local file, and 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. The method of claim 3, wherein the predetermined network space is determined according to an account of the user.
7. A file management apparatus comprising:
the system comprises a calling module, a file management module and a file management module, wherein the calling module is used for calling a file management application, and the file management application is constructed on the basis of a cross-platform desktop application development tool with a function of calling a native system interface; and
and the management module is used for managing the files by utilizing 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-6.
9. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to carry out the method of any one 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, file management device, computer system and computer-readable storage medium Pending CN113778942A (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (1)

Publication Number Publication Date
CN113778942A true CN113778942A (en) 2021-12-10

Family

ID=78835580

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN113778942A (en)

Similar Documents

Publication Publication Date Title
US10831858B2 (en) Mobile enablement of existing web sites
CN108984714B (en) Page rendering method and device, electronic equipment and computer readable medium
US11829436B2 (en) Method and apparatus of pre-rendering page, electronic device, and storage medium
US9471704B2 (en) Shared script files in multi-tab browser
CN111221521B (en) Method, device, computer system and readable storage medium for generating log code
JP2019032883A (en) Method, apparatus, server and system for implementing web application
US20120066610A1 (en) Sub-component instantiation and synchronization using a shared worker
US20140281859A1 (en) Enhanced mobilization of existing web sites
CN113010827B (en) Page rendering method and device, electronic equipment and storage medium
CN113805973A (en) Application program control method and device and application program development method and device
CN114237651A (en) Installation method and device of cloud native application, electronic equipment and medium
CN113448570A (en) Data processing method and device, electronic equipment and storage medium
CN110807162A (en) Method and device for loading occupation bitmap
US9509761B2 (en) Open user interface
CN112965916A (en) Page testing method, page testing device, electronic equipment and readable storage medium
CN114756228A (en) Page processing method, device, equipment and storage medium
CN115982491A (en) Page updating method and device, electronic equipment and computer readable storage medium
CN110599112A (en) Method and device for developing and maintaining network page
CN113778942A (en) File management method, file management device, computer system and computer-readable storage medium
US11822872B2 (en) Rendering based on a document object model
CN115033634A (en) Data acquisition method, data acquisition device, electronic equipment and medium
CN113326079A (en) Service version switching method, switching device, electronic equipment and storage medium
CN113656041A (en) Data processing method, device, equipment and storage medium
CN113448578A (en) Page data processing method, processing system, electronic device and readable storage medium
CN114254232A (en) Cloud product page generation method and device, computer equipment and 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