File data processing method and device, electronic equipment and storage medium
By building a file management system, the mapping relationship between local files and cloud folders is realized, and parallel uploading is enabled, which solves the problem of cumbersome file data uploading and improves the efficiency and user experience of large-scale file processing.
Patent Information
- Application Number
- CN202411918739.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2026-02-27
- Estimated Expiration
- 2044-12-24
AI Technical Summary
Existing technologies involve cumbersome file data upload processes, which cannot meet the needs of large-scale processing. They are particularly inefficient when uploading large or numerous files, resulting in a poor user experience.
By building a file management system, providing a graphical user interface, and realizing the mapping relationship between local files and cloud folders, file data can be uploaded in parallel, simplifying the operation process and supporting batch processing.
Displaying local and cloud file content on the same interface simplifies user operations, enables automated classification and batch processing, and improves file management efficiency.
Smart Images

Figure CN119829528B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of file management, and in particular to a file data processing method, a file data processing device, an electronic device, and a computer readable storage medium. BACKGROUND
[0002] In the process of file resource arrangement, when data sharing or cloud processing is needed for file data stored in a local device, a user needs to upload the local file to an online resource library, so as to perform cloud processing on the file data through the cloud, and facilitate other users to obtain the corresponding file from the online resource library. However, in the process of uploading the file data of the local device to the online resource library, there are problems such as cumbersome file tagging process, and inability to meet the needs of large-scale processing. SUMMARY
[0003] Embodiments of the present application provide a file data processing method, device, electronic device, and computer readable storage medium to solve or partially solve the problem of cumbersome processing process and inability to meet the needs of large-scale processing in the process of file data processing.
[0004] The present application discloses a file data processing method, which provides a graphical user interface through an electronic terminal, the electronic terminal runs a file management system, and displays a file management interface corresponding to the file management system through the graphical user interface, the file management interface at least includes a local file area, a resource library area and a file preview area, the method comprises:
[0005] In response to a file adding operation on the local file area, a local file directory corresponding to the file adding operation is displayed in the local file area, and local file data corresponding to the local file directory is displayed in the file preview area;
[0006] In response to a resource type selection operation on the resource library area, a cloud resource directory of a target resource type corresponding to the resource type selection operation is displayed in the resource library area, and the cloud resource directory includes at least one cloud folder;
[0007] In response to adding target file data in the file preview area to a target cloud folder in the cloud resource directory, a mapping relationship between the target file data and the target cloud folder is established;
[0008] In response to an upload operation on the target file data, the target file data is uploaded in parallel to the target cloud folder in the online resource library according to the mapping relationship.
[0009] The embodiment of the present application further discloses a file data processing device, which provides a graphical user interface through an electronic terminal, the electronic terminal runs a file management system, and displays a file management interface corresponding to the file management system through the graphical user interface, the file management interface at least includes a local file area, a resource library area and a file preview area, and the device comprises:
[0010] A file display module is configured to display a local file directory corresponding to a file adding operation in the local file area in response to the file adding operation, and display local file data corresponding to the local file directory in the file preview area;
[0011] A resource library processing module is configured to display a cloud resource directory of a target resource type corresponding to a resource type selection operation in the resource library area in response to the resource type selection operation, and the cloud resource directory includes at least one cloud folder;
[0012] A mapping module is configured to establish a mapping relationship between target file data in the file preview area and a target cloud folder in the cloud resource directory in response to adding the target file data to the target cloud folder;
[0013] An uploading module is configured to upload the target file data to the target cloud folder of an online resource library in parallel according to the mapping relationship in response to an uploading operation of the target file data.
[0014] The embodiment of the present application further discloses an electronic device, which comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication with each other through the communication bus;
[0015] The memory is used for storing a computer program;
[0016] The processor is used for executing the program stored on the memory, and realizes the method as described in the embodiment of the present application.
[0017] The embodiment of the present application further discloses a computer readable storage medium, which stores instructions, and when executed by one or more processors, causes the processor to execute the method as described in the embodiment of the present application.
[0018] The embodiment of the present application has the following advantages:
[0019] In the embodiment of the present application, by constructing a corresponding file management system, the file data processing between the local and the cloud is realized through the file management system. When the terminal runs the file management system, the corresponding file management interface can be displayed through the graphical user interface. The file management interface at least includes a local file area, a resource library area and a file preview area. In the process of processing file data, the terminal can display the local file directory corresponding to the file adding operation in the local file area in response to the file adding operation for the local file area, and display the local file data corresponding to the local file directory in the file preview area. Then, the cloud resource directory of the target resource type corresponding to the resource type selection operation is displayed in the resource library area in response to the resource type selection operation for the resource library area. The cloud resource directory includes at least one cloud folder. Then, the mapping relationship between the target file data and the target cloud folder in the cloud resource directory can be established in response to adding the target file data in the file preview area to the target cloud folder in the cloud resource directory. Finally, the target file data is uploaded to the target cloud folder of the online resource library in parallel according to the mapping relationship in response to the uploading operation for the target file data. Thus, the local file content and the cloud file content are displayed in the same file management interface, which facilitates the user to quickly find and manage files, simplifies the user operation process, and at the same time, in the process of uploading local data, the mapping relationship between the local file data and the cloud folder in the cloud is constructed, which realizes automatic classification, simplifies the file classification process, and can realize batch file data processing, effectively meeting the different file data processing needs of users. BRIEF DESCRIPTION OF DRAWINGS
[0020] Figure 1 is a step flow chart of a file data processing method provided in the embodiment of the present application;
[0021] Figure 2 is a schematic diagram of file uploading provided in the embodiment of the present application;
[0022] Figure 3 is a flowchart of file uploading provided in the embodiment of the present application;
[0023] Figure 4 is a schematic diagram of a file management interface provided in the embodiment of the present application;
[0024] Figure 5 is a schematic diagram of a file management interface provided in the embodiment of the present application;
[0025] Figure 6 is a schematic diagram of a file management interface provided in the embodiment of the present application;
[0026] Figure 7is a schematic diagram of a file management interface provided in an embodiment of the present application;
[0027] Figure 8 is a schematic diagram of a file management interface provided in an embodiment of the present application;
[0028] Figure 9 is a schematic diagram of a file management interface provided in an embodiment of the present application;
[0029] Figure 10 is a schematic diagram of a file management interface provided in an embodiment of the present application;
[0030] Figure 11 is a schematic diagram of a file management interface provided in an embodiment of the present application;
[0031] Figure 12 is a schematic diagram of a file management interface provided in an embodiment of the present application;
[0032] Figure 13 is a schematic diagram of a file management interface provided in an embodiment of the present application;
[0033] Figure 14 is a structural block diagram of a file data processing device provided in an embodiment of the present application;
[0034] Figure 15 is a block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0035] In order to make the above objectives, features and advantages of the present application more apparent and comprehensible, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0036] In order to make those skilled in the art better understand the technical solutions in the embodiments of the present application, some technical features involved in the embodiments of the present application will be explained and described below:
[0037] GUI (Graphical User Interface): GUI is a way for users to interact with computer systems, through visual elements such as windows, icons, buttons, etc. to make it easy for users to perform tasks.
[0038] Qt: Qt is a mature C++ framework for creating high-quality graphical user interfaces (GUIs), containing a large number of tools for creating GUI components such as windows, buttons, text boxes, etc. It supports event handling, signal and slot mechanism, etc.
[0039] UploadTaskSchedule: The module responsible for managing file upload tasks, coordinating parallel processing of uploads.
[0040] Database Queue Worker (DBQueueWorker): A background thread dedicated to handling database interaction tasks.
[0041] Upload Task Thread (UploadTask): A background process responsible for executing file uploads, supporting multiple files uploaded in parallel.
[0042] Database Queue Worker (DBQueueWorker): A background process that handles interaction tasks with the database, responsible for writing upload progress, status, and other information back to the database, achieving data persistence.
[0043] Upload Task Thread (UploadTask): Responsible for executing actual file upload tasks, supporting multi-task parallelism, and optimizing upload efficiency.
[0044] HTTP (Hypertext Transfer Protocol): HyperText Transfer Protocol, the basic protocol for information exchange between servers and systems.
[0045] MD5 (Message-Digest Algorithm 5): A commonly used hash algorithm that generates a unique identification code for a file, usually used to verify the integrity of the file.
[0046] QTreeView: A Qt framework control used to display tree-structured data, commonly used to display folder or tag structures.
[0047] QListView: A list view control in the Qt framework, mainly used to display file thumbnails and basic information.
[0048] delegate (delegate): Qt, used to customize the drawing and processing of view items, used to display special format files or thumbnails.
[0049] thumbnail (thumbnail): A small image version used for quick preview of files, improving browsing efficiency.
[0050] As an example, in the related art, users upload resource files one by one through the existing web page. Each upload operation requires the user to wait for the file to be completely uploaded successfully before continuing to upload the next file or closing the web page. This single file sequential upload method not only consumes time, but is inefficient, especially for large files or large numbers of file uploads.
[0051] In addition, the user must keep the page open during the uploading process, and cannot perform other operations, reducing the flexibility of the user experience. For large-scale file management, these traditional uploading methods have obvious deficiencies, including the inefficiency of manual classification, the complexity of the uploading process, and the poor user operation experience.
[0052] To this end, in the present application, by constructing a corresponding file management system, the file data processing between the local and the cloud is realized through the file management system, wherein when the terminal runs the file management system, a corresponding file management interface can be displayed through the graphical user interface, the file management interface at least includes a local file area, a resource library area and a file preview area, in the process of processing file data, the terminal can display the local file directory corresponding to the file adding operation in the local file area in response to the file adding operation in the local file area, and display the local file data corresponding to the local file directory in the file preview area, then display the cloud resource directory of the target resource type corresponding to the resource type selection operation in the resource library area in response to the resource type selection operation in the resource library area, the cloud resource directory includes at least one cloud folder, then the mapping relationship between the target file data and the target cloud folder can be established in response to adding the target file data in the file preview area to the target cloud folder in the cloud resource directory, finally, the target file data is uploaded to the target cloud folder in the online resource library according to the mapping relationship in response to the uploading operation of the target file data, so as to display the local file content and the cloud file content in the same file management interface, facilitate the user to quickly find and manage the file, simplify the user operation process, at the same time, in the process of uploading the local data, the mapping relationship between the local file data and the cloud folder in the cloud is constructed, automatic classification is realized, the classification process of the file is simplified, batch file data processing can be realized, and different file data processing needs of the user are effectively met.
[0053] Reference Figure 1 A step flowchart of a file data processing method provided in an embodiment of the present application is shown, a graphical user interface is provided through an electronic terminal, the electronic terminal runs a file management system, and the file management interface corresponding to the file management system is displayed through the graphical user interface, the file management interface at least includes a local file area, a resource library area and a file preview area, and can specifically include the following steps:
[0054] Step 101, in response to the file adding operation in the local file area, the local file directory corresponding to the file adding operation is displayed in the local file area, and the local file data corresponding to the local file directory is displayed in the file preview area;
[0055] In the embodiment of the present application, the file management system can be applied to an application, an applet and a browser page running on an electronic terminal, and during the running process, the terminal can display a file management interface corresponding to the file management system through a graphical user interface. The file management interface can be an interactive interface developed based on a Qt framework, and the user can browse local folders through the file management interface and display the browsed folders in a tree form, etc., so as to quickly find and manage files.
[0056] The file management interface can include a local file area, a resource library area and a file preview area, etc. The local file area can be used to display a local file directory added by the user, the resource library area can be used to display a cloud file directory, and the file preview area can be used to display a preview image corresponding to a local file, so that the local file content and the cloud file content are displayed in the same file management interface, which facilitates the user to quickly find and manage files and simplifies the user operation process.
[0057] It should be noted that during the running process of the file management system, the file management system can be connected with the cloud in real time to obtain corresponding data from the cloud server, such as displaying the corresponding cloud file directory in the resource library area after obtaining the corresponding data, so as to display the local file and the directory structure of the server in the same interface, avoid frequent switching of interfaces and improve the operation efficiency.
[0058] During the process of uploading the local file to the cloud, the user can add a corresponding file directory in the local file area, preview the file data in the selected folder through the file preview area, and then add the file data displayed in the file preview area to a corresponding file position in the resource library area to upload the local file to the cloud.
[0059] During the file adding operation in the local file area, the terminal can display a corresponding local file directory in the local file area according to the file adding operation input by the user in the local file area, and display the local file data corresponding to the local file directory in the file preview area, so that the user can intuitively preview the local file to be processed through the local file area and the file preview area.
[0060] For the file adding operation, the file management system can provide different interaction modes in the local file area, so that the user can flexibly select a corresponding interaction mode to add a local folder or a local file to be processed based on actual needs.
[0061] In an alternative implementation, the content displayed by the graphical user interface further includes a first file management interface, and the first file management interface includes the first local folder and / or the first local file. The first file management interface can be a file management system provided by the terminal itself, such as a file manager provided in a PC terminal, and the corresponding local folder and / or local file can be displayed in the file manager. Specifically, the terminal can display the local file directory corresponding to the first target local folder in the local file region in response to adding the first target local folder in the first file management interface to the local file region, or display the local file directory to which the first target local file belongs in the local file region in response to adding the first target local file in the first file management interface to the local file region.
[0062] In another alternative implementation, the local file region includes an import control, and the corresponding local folder or local file can be imported through the import control. Specifically, the terminal can display a second file management interface in response to a selection operation on the import control, and the second file management interface includes a second local folder and / or a second local file. Then, the terminal displays the local file directory corresponding to the second target local folder in the local file region in response to adding the second target local folder in the second file management interface to the local file region, or displays the local file directory to which the second target local file belongs in the local file region in response to adding the second target local file in the second file management interface to the local file region.
[0063] It should be noted that the second file management interface can be a file manager displayed by the file management system by calling a corresponding interface to read the local file path of the terminal. The display mode between the first file management interface and the second file management interface can be the same or different, and in the reading mode, the user can input a reading operation on the local file displayed in the first file management interface to open the corresponding local file. In the second file management interface, the user can only input a selection operation on the local folder or local file, and can only add the selected local folder or local file to the local file region to display the corresponding local file directory in the local file region and display the preview image corresponding to the local file in the file preview region.
[0064] In another alternative implementation, the terminal can also acquire the local file path corresponding to the path import operation in response to the path import operation for the local file region, and display the local file directory corresponding to the local file path in the local file region if the local file path is valid. The local file region can also provide a corresponding file path import control, and the user can copy a valid local file path and import the local file path through the file path import control. Based on the local file path imported by the user, the system can display the corresponding local file directory in the local file region.
[0065] Based on the above process, after the user adds the corresponding local file directory in the local file region, the system can display the corresponding file data in the file preview region according to the type of the file addition operation. Specifically, if the file addition operation is the first user operation of adding a local folder, the terminal displays the folder hierarchy corresponding to the added target folder in a tree structure in the local file region. If the file addition operation is the second user operation of adding a local file, the terminal displays the folder to which the added target local file belongs in the local file region.
[0066] For example, assuming that the file addition operation input by the user is to add a corresponding folder A, the folder A includes a folder a and a folder b, the folder a includes a file ①, a file ②, and a file ③, and the folder b includes a file ④, the local file directory in the local file region can be displayed as follows:
[0067] - Folder A
[0068] - Folder a
[0069] - Folder b
[0070] In this case, the terminal can select a target folder from the local file directory in response to a selection operation for the local file directory, and display the local file data contained in the target folder in the file preview region. For example, assuming that the user selects the folder A, the terminal can display the folder a and the folder b in the file preview region. If the user selects the folder a, the terminal can display the file ①, the file ②, and the file ③ in the file preview region. Thus, by displaying the corresponding local file directory in the local file region and displaying the local file data corresponding to the local file directory in the file preview region, the user can intuitively preview the corresponding local file to be processed through the local file region and the file preview region.
[0071] In addition, assuming that the file addition operation input by the user is to add the file ①, the terminal can display the local file directory in the local file region as follows:
[0072] - Folder a
[0073] Meanwhile, the file 1 is displayed in the file preview area, so that the user can intuitively preview the corresponding local file to be processed through the local file area and the file preview area by displaying the corresponding local file directory in the local file area and displaying the local file data corresponding to the local file directory in the file preview area.
[0074] It should be noted that, for the process of displaying the corresponding local file directory in the local file area, the terminal can be implemented by a QTreeView component in combination with a QFileSystemModel, so that the terminal can dynamically read the local file system and display the folder hierarchy in a tree structure, and the user can click the corresponding folder to view the content therein.
[0075] In addition, when the user clicks the folder, the system reads the picture file in the folder and generates a thumbnail through the thumbnail method, and then displays the thumbnail in the file preview area. After generating the corresponding thumbnail, the system uses the result of MD5 encryption of the path of the picture file as the file name of the thumbnail. In this way, the thumbnail and the original file path can be one-to-one mapped, ensuring uniqueness and stability in most cases.
[0076] In order to avoid repeated generation of thumbnails, the system stores the path of the thumbnail and the MD5 encryption result of the original file path in the database to establish the mapping relationship between the thumbnail and the file path. When the user previews the same folder again, the system will preferentially query the record in the database to find the thumbnail path corresponding to the MD5 value of the file path, so that the operation of repeatedly generating thumbnails can be avoided, and the loading speed is improved.
[0077] Further, the file preview interface can use QListView to display the file list and use a custom delegate to draw the thumbnail. When drawing, each file is loaded into a queue, and a separate thread is used to check and obtain the thumbnail path one by one and load it into the Model of QlistView, and the delegate is refreshed to update the thumbnail. In order to optimize the performance when loading a large folder, the system does not load the thumbnails of all files at once. When the user scrolls to a certain file item, the system will dynamically load or generate the thumbnail of the file to ensure that the interface is still smooth when processing a large number of files.
[0078] Step 102, in response to a resource type selection operation on the resource library area, displaying a cloud resource directory of a target resource type corresponding to the resource type selection operation in the resource library area, the cloud resource directory including at least one cloud folder;
[0079] After the user determines the local file directory and the corresponding local files to be processed in the local file area, the user can also determine the uploading location of the local files in the resource library area. Specifically, the terminal can determine the resource type of file uploading in response to a resource type selection operation on the resource library area, and then display the cloud resource directory corresponding to the target resource type in the resource library area. The cloud resource directory can include at least one cloud folder, so that the user can upload the local files to the corresponding cloud folder, and at the same time of completing data uploading, realize the classification of the uploaded data.
[0080] Before determining the resource type, the user can first determine the resource library to be uploaded in the resource library area. Optionally, the terminal can display the target resource library corresponding to the resource library selection area in the resource library area in response to a resource library selection operation on the resource library area. Different resource libraries are used to store different data.
[0081] After determining the resource library, the user can select the corresponding resource type. For example, assuming that the data to be processed is game application related data, the resource type can include resource package, model, and image library, etc. The resource package can include game resource related data package, etc. The model can be a virtual model corresponding to a virtual object in the game, etc. The image library can be an image related to the game. It can be understood that the resource type can be adjusted according to the different file data to be processed, and the present application does not limit this.
[0082] Based on the above process, after determining the resource library and the corresponding resource type in the resource library, the terminal can display the corresponding cloud resource directory in the resource library area, so that the user can determine the file uploading location through the cloud folder displayed in the cloud resource directory.
[0083] It should be noted that when the corresponding cloud folder does not exist in the cloud resource directory, the user can also add the corresponding cloud folder in the resource library area in real time. Specifically, the terminal can display a directory adding floating window in the file management interface in response to a directory adding operation on the cloud folder, the directory adding floating window at least including an input area and a preview area. Then, in response to a content input operation on the input area, the terminal displays preview information corresponding to the target content displayed in the input area in the preview area. Then, in response to an adding operation on the preview information, the terminal adds the cloud folder corresponding to the preview information in the resource library area. Thus, the user can add the corresponding cloud folder in real time to meet the actual file data processing needs.
[0084] In an optional implementation, the content input operation at least includes a file path input operation, and the preview information at least includes a folder name. In response to the file path input operation on the input area, the terminal can display at least one local folder path corresponding to the file path input operation in the input area, then extract the last folder name from the local folder path, and display the folder name in the name input area. For example, the user can input "D:\props\2024 pass\test directory test 1", "D:\props\2024 pass\test directory test 2", "D:\props\2024 pass\test directory test 3", etc. in the input area, and the terminal can analyze the file path input by the user and extract the last folder name, such as "test 1", "test 2", and "test 3", etc. as the corresponding file name, and display these file names in the preview area. If the user determines to build a cloud folder based on these file names, the terminal can display the cloud folder with the corresponding name in the corresponding position of the resource library area, so that the user can add the corresponding cloud folder in real time to meet the actual file data processing needs.
[0085] In another optional implementation, the content input operation at least includes a text input operation, and the preview information at least includes a keyword. In response to the text input operation on the input area, the terminal can display at least one keyword corresponding to the text input operation in the input area, and display the keyword in the name input area. For example, the user can input "high mountain", "stream", "forest", and "mountain peak" in the input area, and the terminal can directly use these keywords as the corresponding file name and display these file names in the preview area. If the user determines to build a cloud folder based on these file names, the terminal can display the cloud folder with the corresponding name in the corresponding position of the resource library area, so that the user can add the corresponding cloud folder in real time to meet the actual file data processing needs.
[0086] It should be noted that for the cloud file directory displayed in the resource library area, the system can obtain the tag information on the server through an HTTP request, parse it and display it in a tree structure in QTreeView, so that the user can browse the corresponding cloud folder and select the corresponding cloud folder to classify the target file data to be uploaded, etc. The present application does not limit this.
[0087] Step 103, in response to adding the target file data in the file preview area to the target cloud folder in the cloud resource directory, establishing a mapping relationship between the target file data and the target cloud folder;
[0088] Once the local files to be uploaded and their upload location are determined, users can directly select the corresponding local folders and / or files in the file preview area and add them to the target cloud folder in the resource library area. This establishes a mapping relationship between the target file data and the target cloud folder. During subsequent file data uploads, this mapping relationship allows the files to be uploaded to the appropriate location in the cloud. By constructing this mapping relationship between local file data and cloud folders, automated classification is achieved, simplifying the file classification process and enabling batch file data processing, effectively meeting users' diverse file data processing needs.
[0089] It should be noted that users can use methods such as selecting or dragging to categorize multiple files or folders into the corresponding cloud folders in the resource library area at once. During the process of establishing the mapping relationship through selection or dragging, the terminal can obtain the upload conditions corresponding to the target cloud folder and the information type corresponding to the target file data. Then, it matches the information type with the upload conditions. If the information type meets the upload conditions, a mapping relationship is established between the target file data and the target cloud folder, which can greatly simplify the categorization process, especially meeting the needs of batch operation scenarios.
[0090] Furthermore, once files are categorized, the file management system can asynchronously process the mapping between files and directories in the background, ensuring smooth operation. Simultaneously, the categorization results will be updated in real-time on the file management interface after categorization.
[0091] The upload conditions must include at least a resource type, and the information type must include at least a file format. This allows the file format of the file to be uploaded to be matched with the resource type. If the file format does not meet the resource type requirements, a prompt message will be output for the target file data, indicating that the target file data does not match the resource type. If the file format meets the resource type requirements, a mapping relationship will be established between the target file data and the target cloud folder.
[0092] For example, assuming the resource type is a gallery, the file format of the gallery can represent the format of the image, etc. Only when the dragged local folder and / or local file is in an image-related format can the corresponding mapping relationship be established; otherwise, the terminal can output the corresponding prompt information in the file management interface.
[0093] In an example, the target file data at least includes a target folder and / or a target local file, and in the process of establishing the mapping relationship, if the file formats of the local files contained in the target folder all satisfy the resource type, a first mapping relationship between the target folder and the target cloud folder is established; if the file format of the target local file satisfies the resource type, a second mapping relationship between the target file and the target cloud folder is established.
[0094] In addition, the file management interface further includes a file detail area, after the corresponding mapping relationship is established, the terminal can display the file identifier corresponding to the target file data in the target cloud folder, and the user can add a corresponding file tag to the file corresponding to the corresponding file identifier, specifically, the terminal can display the detail information of the file corresponding to the target file identifier in the file detail area in response to a selection operation on the target file identifier in the resource library area, and then determine the target file tag for the target cloud file in response to a tag editing operation on the detail information, so that after the classification of the file data is completed, the user can further mark the corresponding file through a convenient marking operation to generate a file corresponding file tag, further simplifying the operation mode of the user, reducing the operation burden, and improving the processing efficiency of the file.
[0095] Optionally, the file detail area at least includes a tag area, and in the process of marking, the terminal can display a tag window in the file management interface in response to a trigger operation on the tag area, the tag window at least includes historical tags, and then determines the target file tag for the target cloud file in response to an input operation on the tag area or a selection operation on the historical tags. For the result of each marking, the system can record the corresponding file tag, and display the corresponding historical tags during the user marking process, on the one hand, the historical tags can effectively improve the efficiency of the user marking the file, and on the other hand, the user can also input the corresponding file tag to meet the actual needs.
[0096] It should be noted that in the above process, the dragMoveEvent method of QTreeView can be rewritten, when the user drags multiple files from the local preview area to the tag tree node of the server, the system can determine the type of the dragged information (such as file format, file path, file type (folder or file), etc.) after the file is placed in the target cloud folder, and the package type will be allowed to be placed in the tree node. After QtreeView receives the placement object, the parsed file path will be stored in the model of QTreeView, and the tree-shaped diagram will be dynamically updated to display the state that the file has been classified under the corresponding target cloud folder, and the user can clearly see the corresponding relationship between each file and the cloud folder.
[0097] Further, after parsing the file information, the information of the target label node and the information of the label are placed in the queue together. In a separate thread, the queue information is looped to obtain the label information of each file, and the obtained file information and the label information form a one-to-one mapping relationship. The matched file and label information are stored in the database, facilitating subsequent query and management of the system. In order to avoid blocking the user interface when processing a large number of files, all file parsing and database read-write operations are performed in the background thread. The background thread is responsible for processing the drag and sort operation, and ensures that the user interface remains smooth and responsive during the operation process.
[0098] Step 104, in response to the upload operation for the target file data, the target file data is uploaded into the target cloud folder of the online resource library in parallel according to the mapping relationship.
[0099] After the above process realizes the selection of local files, the selection of cloud resource libraries, the selection of cloud resource directories, and the annotation of files, the user can input a corresponding upload operation to upload the file data to be uploaded to the corresponding file directory in the cloud, which realizes the classification of files and the annotation of files, and also realizes batch data processing, greatly improving the processing efficiency of files.
[0100] In some possible implementation manners, the terminal can display a permission setting interface in the file management interface in response to the upload operation for the target file data. The permission setting interface includes a plurality of permission types. Then, in response to a selection operation for the permission type, a target permission type is determined, and the target file data is uploaded into the target cloud folder of the online resource library in parallel according to the target permission type and the mapping relationship. During the uploading process, the user can further set the permission type corresponding to the uploaded target file data in the permission setting interface. The permission type represents the data range of the file data. The permission type can include an intellectual property type, a general type, a confidential type, and an external type, etc. The intellectual property type represents that the file data belongs to data related to an intellectual property object. The general type represents that the file data belongs to general data. The confidential type represents that the file data belongs to data that needs to be kept secret. The external type represents that the file data belongs to data obtained from an external channel of the enterprise. By setting the corresponding permission type, the file data can be further classified, so that the user can quickly find the file data of the corresponding type according to the actual needs.
[0101] Optionally, referring to Figure 2, shows a schematic diagram of the file uploading provided in the embodiment of the application, for a file management system, which can include an uploading scheduler, a database queue processing thread and an uploading task thread, etc., wherein the uploading scheduler can be used for being responsible for receiving and managing all uploading tasks. When a user submits an uploading request, the scheduler will distribute the task to each uploading task queue. At the same time, the scheduler will continuously receive real-time state information from each uploading task, such as uploading progress, task state, etc., and communicate with the front-end interface through signals, so that the user can intuitively view the uploading progress of each file on the interface; for the database queue processing thread, there is an independent database queue processing thread in each uploading task, which is specially responsible for interacting with the database. When the uploading task is executed, it will first read the information related to the file (such as file path, label, etc.) from the database through the thread, and write the uploading progress, state, etc. back to the database in time during the task process, to ensure the persistence and subsequent query of the data; for the uploading task thread, the core of each task is the uploading thread, which is responsible for uploading the file to the server. Since each task runs independently, multiple files can be uploaded at the same time without affecting each other, greatly improving the utilization rate of bandwidth.
[0102] It should be noted that the embodiments of the present application include but are not limited to the above examples, and it can be understood that those skilled in the art can also set according to actual needs under the guidance of the idea of the embodiments of the present application, and the present application does not limit this.
[0103] In the embodiment of the present application, by constructing a corresponding file management system, the file data processing between the local and the cloud is realized through the file management system. When the terminal runs the file management system, the corresponding file management interface can be displayed through the graphical user interface. The file management interface at least includes a local file area, a resource library area and a file preview area. In the process of processing file data, the terminal can display the local file directory corresponding to the file adding operation in the local file area in response to the file adding operation for the local file area, and display the local file data corresponding to the local file directory in the file preview area. Then, the cloud resource directory of the target resource type corresponding to the resource type selection operation is displayed in the resource library area in response to the resource type selection operation for the resource library area. The cloud resource directory includes at least one cloud folder. Then, the mapping relationship between the target file data and the target cloud folder in the cloud resource directory can be established in response to adding the target file data in the file preview area to the target cloud folder. Finally, the target file data is uploaded to the target cloud folder of the online resource library according to the mapping relationship in response to the uploading operation for the target file data, so as to simultaneously display the local file content and the cloud file content in the same file management interface, facilitate the user to quickly find and manage the file, simplify the user operation process, and at the same time, in the process of uploading the local data, the mapping relationship between the local file data and the cloud folder in the cloud is constructed, the automatic classification is realized, the file classification process is simplified, the batch file data processing can be realized, and the different file data processing needs of the user are effectively met.
[0104] In order for those skilled in the art to better understand the technical solutions in the embodiments of the present application, the following will be exemplarily described through corresponding examples:
[0105] Referring to Figure 3 , a flowchart of file uploading provided in the embodiment of the present application is shown, including: ① selecting a local folder or dragging a file into the client interface; ② selecting a resource library; ③ selecting a resource type; ④ batch creating online resource library directory classification; ⑤ visualizing previewing batch dragging file classification; ⑥ continuing to label annotation on demand; ⑦ batch setting permissions; ⑧ batch uploading; ⑨ online viewing uploaded resources. When the user drags the local folder or the file into the client interface, the client can parse the local file to generate a corresponding preview image. In the process of selecting the resource library, the user can select the resource library according to the user account permissions logged in, and the present application does not limit this.
[0106] Referring to Figures 4 to 13 , a schematic diagram of a file management interface provided in the embodiment of the present application is shown, wherein, as Figure 4As shown, the terminal runs the corresponding file management system and displays a file management interface 401 through a graphical user interface. The file management interface 401 may include at least a local file area 410, a resource library area 420, and a file preview area 430. The local file area 410 may include a file data import control 4101 and a file path import control 4102. Users can import local file data by dragging and dropping corresponding folders or files to the file data import control 4101, or by importing local file data through the file path import control 4102. Specifically:
[0107] like Figure 4 As shown, users can switch to the client file management interface, open the local folder 402, and then drag and drop the local folder or files into the local file area of the file management interface. The contents of the local folder can then be visually previewed in the file preview area 430, which is useful for asset organization and uploading. Figure 5 As shown, when a user drags or imports a file path to import a local folder A into the file management system, the client can display the contents of folder A, such as folder a and files, in the file preview area 430.
[0108] Selecting a folder in the local directory area of resource management will display a thumbnail of the folder's contents in the middle preview area. Below the local directory is a list of online repositories; clicking the drop-down arrow allows you to select the corresponding project repository from which you want to upload local files to the online resource library, such as... Figure 6 As shown, by clicking the drop-down arrow, the client can display the corresponding project resource library in the resource library area, or quickly search by entering the repository name, so as to determine the target location for uploading local files.
[0109] After switching project repositories, you need to select the type of resource to upload in the corresponding location within the resource repository area. For example... Figure 7 As shown, resource types include three categories: resource packages, models, and image libraries. Figure 8 As shown, after selecting the type of resource to upload, the directories created under that type of module will be displayed. For example... Figure 9 As shown, to add directories, select an existing directory, right-click, and a directory menu will appear. Select "Batch Add Directories." In the pop-up "Batch Add Directories" window, copy the local folder path (by copying the local folder path, you can add the corresponding directories in batches). The system will automatically extract the last folder name from the path and generate a directory on the right side of the pop-up window. Figure 9As shown, the last folder corresponding to the file path "D:\Users\Username\test directory\test 1", "D:\Users\Username\test directory\test 2", and "D:\Users\Username\test directory\test 3" can be extracted as the name of the newly generated directory, i.e. "test 1", "test 2", and "test 3". In addition, the corresponding keywords can also be input as the directory name, which is not limited by the present application.
[0110] In the batch creation directory popup window, clicking the "generate directory" button will generate a new directory under the selected directory, as shown in the following figure: Figure 10 As shown, a new file directory can be generated under the selected folder.
[0111] In the local directory, the folder or file under the directory can be selected and dragged into the directory in the resource type module below, so as to complete the classification of the local file or folder, as shown in the following figure: Figure 11 As shown, the user can drag the folder a to the cloud file directory corresponding to test 1 and / or drag the file to the cloud file directory corresponding to test 2, so as to complete the classification of the local file or folder by establishing the corresponding mapping relationship, and in the subsequent uploading process, the mapping relationship can be used for uploading.
[0112] In addition, the client can also integrate a tag library to allow users to quickly label resources, as shown in the following figure: Figure 12 As shown: first, by selecting the classified resource package, the resource package details will be displayed on the right side of the interface. Then, in the tag area of the resource package details, custom tags can be input by double-clicking the input area in the tag window, and each time a tag is added, it will be stored in the history record, so that the tag can be directly selected for labeling next time.
[0113] Before uploading, the resource upload permission can also be set in batches. After clicking the upload button, the permission setting interface will be popped up. By selecting any type, the setting can be completed in batches, as shown in the following figure: Figure 13 As shown, the IP asset, general asset, confidential asset, and external asset types can be provided in the permission setting interface for user selection. After the user clicks the upload button and sets the asset type, the client can switch to the upload interface, and the "resource upload" module at the top of the upload interface can display the real-time progress of the resource upload.
[0114] Through the above process, the local file content and the cloud file content are simultaneously displayed in the same file management interface, the user can quickly find and manage files, and the user operation process is simplified. Meanwhile, in the process of uploading the local data, the mapping relationship between the local file data and the cloud folder in the cloud is constructed, automatic classification is realized, the file classification process is simplified, batch file data processing can be realized, and different file data processing needs of the user are effectively met.
[0115] It should be noted that, for the method embodiments, in order to simply describe, they are all described as a series of action combinations, but those skilled in the art should know that the embodiments of the present application are not limited to the action sequence described, because according to the embodiments of the present application, certain steps can be performed in other sequences or at the same time. Secondly, those skilled in the art should know that the embodiments described in the specification all belong to preferred embodiments, and the actions involved are not necessarily necessary for the embodiments of the present application.
[0116] Referring to Figure 14 , a structural block diagram of a file data processing device provided in an embodiment of the present application is shown, a graphical user interface is provided through an electronic terminal, the electronic terminal runs a file management system, and a file management interface corresponding to the file management system is displayed through the graphical user interface, the file management interface at least includes a local file area, a resource library area and a file preview area, and specifically can include the following modules:
[0117] The file display module 1401 is configured to, in response to a file adding operation on the local file area, display a local file directory corresponding to the file adding operation in the local file area, and display local file data corresponding to the local file directory in the file preview area;
[0118] The resource library processing module 1402 is configured to, in response to a resource type selection operation on the resource library area, display a cloud resource directory of a target resource type corresponding to the resource type selection operation in the resource library area, and the cloud resource directory includes at least one cloud folder;
[0119] The mapping module 1403 is configured to, in response to adding target file data in the file preview area to a target cloud folder in the cloud resource directory, establish a mapping relationship between the target file data and the target cloud folder;
[0120] The uploading module 1404 is configured to, in response to an uploading operation on the target file data, upload the target file data to the target cloud folder of the online resource library in parallel according to the mapping relationship.
[0121] In some possible implementation manners, the content displayed by the graphical user interface further includes a first file management interface, the first file management interface including a first local folder and / or a first local file, and the file display module 1401 is specifically configured to:
[0122] In response to adding a first target local folder in the first file management interface to the local file region, a local file directory corresponding to the first target local folder is displayed in the local file region.
[0123] In response to adding a first target local file in the first file management interface to the local file region, a local file directory to which the first target local file belongs is displayed in the local file region.
[0124] In some possible implementation manners, the local file region includes an import control, and the file display module 1401 is specifically configured to:
[0125] In response to a selection operation on the import control, a second file management interface is displayed, the second file management interface including a second local folder and / or a second local file.
[0126] In response to adding a second target local folder in the second file management interface to the local file region, a local file directory corresponding to the second target local folder is displayed in the local file region.
[0127] In response to adding a second target local file in the second file management interface to the local file region, a local file directory to which the second target local file belongs is displayed in the local file region.
[0128] In some possible implementation manners, the file display module 1401 is specifically configured to:
[0129] In response to a path import operation on the local file region, a local file path corresponding to the path import operation is obtained, and if the local file path is valid, a local file directory corresponding to the local file path is displayed in the local file region.
[0130] In some possible implementation manners, the file display module 1401 is specifically configured to:
[0131] If the file addition operation is a first user operation of adding a local folder, a folder level corresponding to the added target folder is displayed in a tree structure in the local file region.
[0132] If the file addition operation is a second user operation of adding a local file, a folder to which the added target local file belongs is displayed in the local file region.
[0133] In some possible implementation manners, the file display module 1401 is specifically configured to:
[0134] In response to a selection operation on the local file directory, a target folder is selected from the local file directory, and local file data contained in the target folder is displayed in the file preview area.
[0135] In some possible implementation manners, the apparatus further includes:
[0136] A resource library selection module configured to, in response to a resource library selection operation on the resource library area, display a target resource library corresponding to the resource library selection area in the resource library area.
[0137] In some possible implementation manners, the mapping module 1403 is specifically configured to:
[0138] Obtain an upload condition corresponding to the target cloud folder;
[0139] Obtain an information type corresponding to the target file data;
[0140] If the information type meets the upload condition, a mapping relationship between the target file data and the target cloud folder is established.
[0141] In some possible implementation manners, the upload condition at least includes a resource type, the information type at least includes a file format, and the mapping module 1403 is specifically configured to:
[0142] If the file format does not meet the resource type, prompt information for the target file data is output, and the prompt information is information prompting that the target file data and the resource type are not matched;
[0143] If the file format meets the resource type, a mapping relationship between the target file data and the target cloud folder is established.
[0144] In some possible implementation manners, the target file data at least includes a target folder and / or a target local file, and the mapping module 1403 is specifically configured to:
[0145] If file formats of local files contained in the target folder all meet the resource type, a first mapping relationship between the target folder and the target cloud folder is established;
[0146] If a file format of the target local file meets the resource type, a second mapping relationship between the target file and the target cloud folder is established.
[0147] In some possible implementation manners, the apparatus further includes:
[0148] a directory adding module, configured to display a directory adding floating window in the file management interface in response to a directory adding operation on the cloud folder, the directory adding floating window including at least an input area and a preview area;
[0149] a content input module, configured to display, in the preview area, preview information corresponding to target content displayed in the input area in response to a content input operation on the input area;
[0150] a folder adding module, configured to add a cloud folder corresponding to the preview information in the resource library area in response to an adding operation on the preview information.
[0151] In some possible implementation manners, the content input operation includes at least a file path input operation, and the preview information includes at least a folder name, and the content input module is specifically configured to:
[0152] display at least one local folder path corresponding to the file path input operation in the input area in response to the file path input operation on the input area;
[0153] extract a last folder name from the local folder path, and display the folder name in the name input area.
[0154] In some possible implementation manners, the content input operation includes at least a text input operation, and the preview information includes at least a keyword, and the content input module is specifically configured to:
[0155] display at least one keyword corresponding to the text input operation in the input area in response to the text input operation on the input area, and display the keyword in the name input area.
[0156] In some possible implementation manners, the file management interface further includes a file detail area, and the apparatus further includes:
[0157] an identifier display module, configured to display a file identifier corresponding to the target file data in the target cloud folder;
[0158] a detail display module, configured to display, in the file detail area, detail information of a file corresponding to the target file identifier in response to a selection operation on the target file identifier in the resource library area;
[0159] a tag determination module, configured to determine a target file tag of the target cloud file in response to a tag editing operation on the detail information.
[0160] In some possible implementation manners, the file detail area at least includes a label area, and the label determining module is specifically configured to:
[0161] In response to a triggering operation on the label area, display a label window in the file management interface, the label window at least including a history label;
[0162] In response to an input operation on the label area or a selection operation on the history label, determine a target file label for the target cloud file.
[0163] In some possible implementation manners, the uploading module 1404 is specifically configured to:
[0164] In response to an uploading operation on the target file data, display a permission setting interface in the file management interface, the permission setting interface including a plurality of permission types;
[0165] In response to a selection operation on the permission type, determine a target permission type, and upload the target file data to the target cloud folder of the online resource library in parallel according to the target permission type and the mapping relationship.
[0166] For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the related parts refer to the part of the method embodiment.
[0167] In addition, the embodiment of the present application further provides an electronic device, which comprises a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, each process of the above-mentioned file data processing method embodiment is implemented, and the same technical effects are achieved. To avoid repetition, no further description is given here.
[0168] The embodiment of the present application further provides a computer readable storage medium, which stores a computer program. When the computer program is executed by a processor, each process of the above-mentioned file data processing method embodiment is implemented, and the same technical effects are achieved. To avoid repetition, no further description is given here. The computer readable storage medium includes a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0169] Figure 15 A hardware structure schematic diagram of an electronic device for implementing various embodiments of the present application.
[0170] The electronic device 1500 includes, but is not limited to, a radio frequency unit 1501, a network module 1502, an audio output unit 1503, an input unit 1504, a sensor 1505, a display unit 1506, a user input unit 1507, an interface unit 1508, a memory 1509, a processor 1510, and a power supply 1511, etc. Those skilled in the art can understand that the electronic device structure involved in the embodiments of the present application does not constitute a limitation on the electronic device, and the electronic device can include more or less components than the illustration, or combine certain components, or different component arrangements. In the embodiments of the present application, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle terminal, a wearable device, and a pedometer, etc.
[0171] It should be understood that in the embodiments of the present application, the radio frequency unit 1501 can be used for receiving and transmitting signals in the process of information or call, specifically, receiving downlink data from the base station for the processor 1510 to process, and transmitting uplink data to the base station. Generally, the radio frequency unit 1501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc. In addition, the radio frequency unit 1501 can also communicate with the network and other devices through a wireless communication system.
[0172] The electronic device provides the user with wireless broadband Internet access through the network module 1502, such as helping the user to send and receive emails, browse web pages, and access streaming media, etc.
[0173] The audio output unit 1503 can convert audio data received by the radio frequency unit 1501 or the network module 1502 or stored in the memory 1509 into an audio signal and output as a sound. Moreover, the audio output unit 1503 can also provide audio output related to the specific function performed by the electronic device 1500 (e.g., call signal receiving sound, message receiving sound, etc.). The audio output unit 1503 includes a speaker, a buzzer, and a receiver, etc.
[0174] The input unit 1504 is configured to receive audio or video signals. The input unit 1504 can include a graphics processor (GPU) 15041 and a microphone 15042. The graphics processor 15041 processes image data of a still picture or a video obtained by an image capture device (e.g., a camera) in a video capture mode or an image capture mode. Processed image frames can be displayed on the display unit 1506. Processed image frames can be stored in the memory 1509 (or other storage medium) or transmitted via the radio frequency unit 1501 or the network module 1502. The microphone 15042 can receive sound and is capable of processing such sound as audio data. Processed audio data can be converted into a format that can be transmitted to a mobile communication base station via the radio frequency unit 1501 in the case of a telephone call mode.
[0175] The electronic device 1500 further includes at least one sensor 1505, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 15061 according to the brightness of ambient light, and the proximity sensor can turn off the display panel 15061 and / or the backlight when the electronic device 1500 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), and when at rest, can detect the magnitude and direction of gravity, and can be used to identify the electronic device posture (such as screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, knock), and the like. The sensor 1505 can also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like, which will not be described here.
[0176] The display unit 1506 is configured to display information input by a user or information provided to the user. The display unit 1506 can include a display panel 15061, which can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
[0177] The user input unit 1507 can be used to receive inputted digital or character information, and to generate key signal input related to user settings of the electronic device and control of functions. Specifically, the user input unit 1507 includes a touch panel 15071 and other input devices 15072. The touch panel 15071, also called a touch screen, can collect a user's touch operation (such as a user's operation on or near the touch panel 15071 using a finger, a stylus, or any suitable object or accessory) on or near it. The touch panel 15071 can include two parts, a touch detection device and a touch controller. The touch detection device detects the user's touch position and detects a signal caused by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into touch coordinates, and sends it to the processor 1510, receives commands from the processor 1510 and executes them. In addition, the touch panel 15071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 15071, the user input unit 1507 can also include other input devices 15072. Specifically, the other input devices 15072 can include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, on / off buttons, etc.), trackballs, mice, joysticks, etc., which will not be described here.
[0178] Further, the touch panel 15071 can be overlaid on the display panel 15061, and when the touch panel 15071 detects a touch operation on or near it, it transmits to the processor 1510 to determine the type of touch event, and then the processor 1510 provides corresponding visual output on the display panel 15061 according to the type of touch event. It can be understood that in one embodiment, the touch panel 15071 and the display panel 15061 are implemented as two independent components to realize the input and output functions of the electronic device, but in some embodiments, the touch panel 15071 and the display panel 15061 can be integrated to realize the input and output functions of the electronic device, which is not limited here.
[0179] The interface unit 1508 is an interface for connecting external devices to the electronic device 1500. For example, the external devices can include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input / output (I / O) port, a video I / O port, an earphone port, etc. The interface unit 1508 can be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the electronic device 1500, or can be used to transmit data between the electronic device 1500 and external devices.
[0180] The memory 1509 can be used to store software programs and various data. The memory 1509 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; and the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), and the like. In addition, the memory 1509 can include a high-speed random access memory, and can also include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state memory device.
[0181] The processor 1510 is a control center of the electronic device, connects all parts of the electronic device through various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and / or modules stored in the memory 1509 and calling data stored in the memory 1509, and thus performs overall monitoring on the electronic device. The processor 1510 can include one or more processing units; preferably, the processor 1510 can integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 1510.
[0182] The electronic device 1500 can further include a power supply 1511 (such as a battery) for supplying power to various components; preferably, the power supply 1511 can be logically connected to the processor 1510 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system.
[0183] In addition, the electronic device 1500 includes some functional modules which are not shown and will not be described here.
[0184] It should be noted that in this paper, the term “including”, “containing” or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or includes elements inherent to such process, method, article or device. Without more limitations, the element defined by the statement “including one” does not exclude the presence of another identical element in the process, method, article or device including the element.
[0185] Those skilled in the art can clearly understand that the above-mentioned embodiment method can be realized by means of software and necessary general hardware platform, of course, it can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes a plurality of instructions for making a terminal (which can be a mobile phone, computer, server, air conditioner, or network device) execute the method described in each embodiment of the present application.
[0186] The embodiments of the present application are described above with reference to the accompanying drawings, but the present application is not limited to the above-mentioned specific embodiments, and the above-mentioned specific embodiments are only illustrative, not restrictive. Those skilled in the art can make many forms without departing from the purpose of the present application and the scope protected by the claims under the inspiration of the present application, which all belong to the protection of the present application.
[0187] Those skilled in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed in the embodiments of the present application can be realized by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are realized in hardware or software depends on the specific application and design constraints of the technical solutions. Those skilled in the art can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0188] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-mentioned system, device and unit can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.
[0189] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed units can be indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0190] The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment scheme.
[0191] In addition, each functional unit in each embodiment of the application can be integrated in one processing unit, or each unit can be physically present alone, or two or more units can be integrated in one unit.
[0192] The functions, if realized in the form of software functional units and sold or used as independent products, can be stored in a computer readable storage medium. Based on such understanding, the technical scheme of the application or the part of the prior art that contributes essentially or the part of the technical scheme can be embodied in the form of a software product. The computer software product stored in a storage medium includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk, and various program code storage media.
[0193] The above is only a specific embodiment of the application, but the protection scope of the application is not limited thereto. Any person skilled in the art can easily think of changes or replacements within the technical range disclosed by the application, which should be covered within the protection scope of the application. Therefore, the protection scope of the application should be subject to the protection scope of the claims.
Claims
1. A method for processing file data, characterized in that, The method includes providing a graphical user interface (GUI) via an electronic terminal, wherein the electronic terminal runs a file management system and displays a file management interface corresponding to the file management system through the GUI, the file management interface including at least a local file area, a resource library area, and a file preview area. In response to a file addition operation in the local file area, the local file directory corresponding to the file addition operation is displayed in the local file area, and the local file data corresponding to the local file directory is displayed in the file preview area; In response to a resource type selection operation for the resource library area, a cloud resource directory of the target resource type corresponding to the resource type selection operation is displayed in the resource library area, the cloud resource directory including at least one cloud folder; In response to adding the target file data in the file preview area to the target cloud folder in the cloud resource directory, a mapping relationship between the target file data and the target cloud folder is established; In response to the upload operation for the target file data, the target file data is uploaded in parallel to the target cloud folder in the online resource library according to the mapping relationship.
2. The method according to claim 1, characterized in that, The graphical user interface also displays a first file management interface, which includes a first local folder and / or a first local file. In response to a file addition operation in the local file area, displaying the local file directory corresponding to the file addition operation in the local file area includes: In response to adding the first target local folder from the first file management interface to the local file area, the local file directory corresponding to the first target local folder is displayed in the local file area; Alternatively, in response to adding a first target local file from the first file management interface to the local file area, the local file directory to which the first target local file belongs is displayed in the local file area.
3. The method according to claim 1, characterized in that, The local file area includes an import control. The step of displaying a local file directory corresponding to the file addition operation in the local file area in response to a file addition operation includes: In response to a selection operation on the import control, a second file management interface is displayed, which includes a second local folder and / or a second local file; In response to adding the second target local folder from the second file management interface to the local file area, the local file directory corresponding to the second target local folder is displayed in the local file area; Alternatively, in response to adding a second target local file from the second file management interface to the local file area, the local file directory to which the second target local file belongs is displayed in the local file area.
4. The method according to claim 1, characterized in that, The step of displaying the local file directory corresponding to the file addition operation in the local file area in response to a file addition operation includes: In response to a path import operation for the local file region, the local file path corresponding to the path import operation is obtained. If the local file path is valid, the local file directory corresponding to the local file path is displayed in the local file region.
5. The method according to any one of claims 1 to 4, characterized in that, Displaying the local file directory corresponding to the file addition operation in the local file area includes: If the file addition operation is the first user operation to add a local folder, then the folder hierarchy corresponding to the added target folder is displayed in a tree structure in the local file area; If the file addition operation is a second user operation to add a local file, then the folder to which the target local file belongs is displayed in the local file area.
6. The method according to any one of claims 1 to 4, characterized in that, The step of displaying the local file data corresponding to the local file directory in the file preview area includes: In response to a selection operation on the local file directory, a target folder is selected from the local file directory, and the local file data contained in the target folder is displayed in the file preview area.
7. The method according to claim 1, characterized in that, Before displaying a cloud resource catalog of the target resource type corresponding to the resource type selection operation in the resource library area in response to a resource type selection operation in the resource library area, the method further includes: In response to a resource library selection operation for the resource library region, the target resource library corresponding to the selected resource library region is displayed in the resource library region.
8. The method according to claim 1, characterized in that, The process of establishing a mapping relationship between the target file data and the target cloud folder includes: Obtain the upload conditions corresponding to the target cloud folder; Obtain the information type corresponding to the target file data; If the information type meets the upload conditions, a mapping relationship is established between the target file data and the target cloud folder.
9. The method according to claim 8, characterized in that, The upload conditions include at least a resource type, and the information type includes at least a file format. If the information type meets the upload conditions, a mapping relationship is established between the target file data and the target cloud folder, including: If the file format does not meet the resource type, a prompt message is output for the target file data, indicating that the target file data does not match the resource type; If the file format meets the resource type, then a mapping relationship is established between the target file data and the target cloud folder.
10. The method according to claim 9, characterized in that, The target file data includes at least a target folder and / or a target local file. If the file format satisfies the resource type, then establishing a mapping relationship between the target file data and the target cloud folder includes: If the file formats of all local files contained in the target folder meet the resource type, then a first mapping relationship is established between the target folder and the target cloud folder; If the file format of the target local file meets the resource type, then a second mapping relationship is established between the target file and the target cloud folder.
11. The method according to any one of claims 7 to 10, characterized in that, Also includes: In response to the directory addition operation for the cloud folder, a directory addition pop-up window is displayed in the file management interface. The directory addition pop-up window includes at least an input area and a preview area. In response to a content input operation in the input area, preview information corresponding to the target content displayed in the input area is displayed in the preview area; In response to the operation of adding the preview information, a cloud folder corresponding to the preview information is added in the resource library area.
12. The method according to claim 11, characterized in that, The content input operation includes at least a file path input operation, the preview information includes at least a folder name, and the step of displaying preview information corresponding to the target content displayed in the input area in response to the content input operation in the input area includes: In response to a file path input operation in the input area, at least one local folder path corresponding to the file path input operation is displayed in the input area; Extract the name of the last folder from the local folder path and display the folder name in the name input area.
13. The method according to claim 11, characterized in that, The content input operation includes at least a text input operation, the preview information includes at least keywords, and the step of displaying preview information corresponding to the target content displayed in the input area in response to the content input operation in the input area includes: In response to a text input operation in the input area, at least one keyword corresponding to the file path input operation is displayed in the input area, and the keyword is also displayed in the name input area.
14. The method according to claim 1, characterized in that, The file management interface also includes a file details area, and the method further includes: The file identifier corresponding to the target file data is displayed in the target cloud folder; In response to a selection operation for a target file identifier in the resource library area, detailed information of the file corresponding to the target file identifier is displayed in the file details area; In response to the tag editing operation for the details information, target file tags for the target cloud file are determined.
15. The method according to claim 14, characterized in that, The file details area includes at least a tag area, and the step of determining target file tags for the target cloud file in response to a tag editing operation on the details information includes: In response to a trigger operation on the tab area, a tab window is displayed in the file management interface, the tab window including at least the history tabs; In response to an input operation on the tag region or a selection operation on the historical tags, a target file tag is determined for the target cloud file.
16. The method according to claim 1, characterized in that, The step of responding to the upload operation for the target file data by uploading the target file data in parallel to the target cloud folder in the online resource library according to the mapping relationship includes: In response to the upload operation for the target file data, a permission setting interface is displayed in the file management interface, and the permission setting interface includes several permission types; In response to the selection operation for the permission type, the target permission type is determined, and the target file data is uploaded in parallel to the target cloud folder in the online resource library according to the target permission type and the mapping relationship.
17. A file data processing apparatus, characterized in that, The device provides a graphical user interface via an electronic terminal, which runs a file management system and displays a file management interface corresponding to the file management system through the graphical user interface. The file management interface includes at least a local file area, a resource library area, and a file preview area. The file display module is used to respond to a file addition operation for the local file area by displaying the local file directory corresponding to the file addition operation in the local file area, and displaying the local file data corresponding to the local file directory in the file preview area; A resource library processing module is configured to, in response to a resource type selection operation for the resource library area, display a cloud resource directory in the resource library area corresponding to the target resource type selection operation, wherein the cloud resource directory includes at least one cloud folder. The mapping module is used to establish a mapping relationship between the target file data and the target cloud folder in response to adding the target file data in the file preview area to the target cloud folder in the cloud resource directory; The upload module is used to respond to the upload operation for the target file data and upload the target file data in parallel to the target cloud folder in the online resource library according to the mapping relationship.
18. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; The memory is used to store computer programs; When the processor executes a program stored in the memory, it implements the method as described in any one of claims 1-16.
19. A computer-readable storage medium having instructions stored thereon that, when executed by one or more processors, cause the processors to perform the method as described in any one of claims 1-16.
Citation Information
Patent Citations
Cloud-local file synchronization implementing method and system
CN107332918A
File transfer method, system, computer device and storage medium
CN109040252A