A file sharing method, apparatus, storage medium, and electronic device
By parsing Sketch files to generate temporary files and uploading them to the specified location, the complex file sharing process is solved, efficiency and collaboration capabilities are improved, and file sharing across operating systems is realized.
Patent Information
- Application Number
- CN202210412585.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-19
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2042-04-19
AI Technical Summary
In the design team, when using Sketch software, the file sharing process is complex and involves multiple manual steps, resulting in inefficiency and affecting multi-person collaboration.
Generate temporary files by parsing Sketch files and uploading them to a specified shared location, simplifying the sharing process, reducing steps, and achieving quick preview and download of files.
It improves the efficiency of file sharing, simplifies the operation process, and enhances the multi-person collaboration capabilities of the design team, so that files can be shared between different operating systems.
Smart Images

Figure CN114968957B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data sharing, and in particular to a file sharing method, a file sharing device, a computer-readable storage medium, and an electronic device. Background Art
[0002] Sketch is a vector drawing application software, mainly used for icon design and interface design. Because Sketch has comprehensive functions and is easy to use, it has been favored by most design companies. Within a design company, for a design team, design drafts usually need to be shared with each other in order to collaborate on team projects. However, as a software suitable for the macOS (Apple computer system) platform, the steps are relatively complicated when sharing the design draft source file with other users through Sketch. The common way is that the sharer of the Sketch file first exports the Sketch file from the Sketch application software and compresses the file, and then uploads and shares the compressed file through instant messaging tools (such as DingTalk, WeChat, etc.), and finally other users can download the compressed file and decompress it locally before they can make further processing on the basis of the Sketch file. That is to say, in the prior art, when users share Sketch files, there are many manual operations involved, and the process is complicated, resulting in low efficiency and not conducive to multi-person collaboration. Summary of the invention
[0003] In view of this, the present application aims to provide a file sharing method, which aims to improve the efficiency of file sharing, reduce the steps in the sharing process, simplify the operation, and thus improve the efficiency of multi-person collaboration in the design team, in order to solve the problem of complex Sketch file sharing process in the prior art.
[0004] In order to achieve the above purpose, the embodiments of the present application are implemented in the following manner:
[0005] In a first aspect, an embodiment of the present application provides a file sharing method, the method comprising: obtaining a Sketch file; parsing the Sketch file and generating a corresponding temporary file, the data volume of the temporary file being smaller than the data volume of the Sketch file; uploading the temporary file to a designated shared location to share the temporary file through the designated shared location.
[0006] In the embodiment of the present application, after parsing the Sketch file, uploading it in the form of a temporary file, since the exported file is not a Sketch file and the data volume is smaller, uploading can be faster to a certain extent. By obtaining the Sketch file, parsing the obtained Sketch file and generating a corresponding temporary file, and uploading the temporary file directly to a designated shared location, and storing and sharing the temporary file based on the designated shared location, other users can implement sharing operations such as preview and download on the temporary file through the designated shared location. Since the temporary file is parsed based on the Sketch file, the corresponding Sketch file can be restored based on the temporary file. Therefore, the sharing of the temporary file also realizes the sharing of the Sketch file. Compared with the prior art, the file sharing method provided in the embodiment of the present application does not need to manually export the Sketch file when sharing the Sketch file, and compress the exported file, and share the compressed file through an instant messaging tool, thereby improving the efficiency of file sharing to a certain extent, reducing the steps in the sharing process, simplifying the operation, and thus improving the efficiency of multi-person collaboration of the design team.
[0007] In one embodiment, before uploading the temporary file to the designated shared location, the method further includes: storing the temporary file in a pre-created temporary folder.
[0008] In one embodiment, the temporary folder includes multiple classification folders, wherein the classification folders include a slice resource folder, a material folder, and an HTML folder, and storing the temporary file in a pre-created temporary folder includes: based on the type of each file in the temporary file, storing each file in the temporary file into the corresponding classification folder.
[0009] In an embodiment of the present application, different temporary files are generated after parsing the Sketch file. The temporary files are classified and organized before being uploaded. Different files and folders are stored in different locations, so that after the temporary files are uploaded, it is convenient for file management and users to find files.
[0010] In one embodiment, before uploading the temporary file to the designated shared location, the method further includes: determining the designated shared location based on information entered by the user.
[0011] In the embodiment of the present application, by determining the designated sharing location based on the information entered by the user, the user can select different designated sharing locations according to his or her own needs, thereby sharing files through different locations.
[0012] In one embodiment, parsing the Sketch file to generate a corresponding temporary file includes: parsing the Sketch file to generate a first annotation file; inserting the first annotation file into a preset HTML template to generate a first HTML file; wherein the first HTML file and the first annotation file are both the temporary files.
[0013] In the embodiment of the present application, the Sketch file is converted into an HTML file, so that users can view the Sketch file converted into HTML format through terminals equipped with different operating systems, thereby realizing the sharing of Sketch files between different operating systems. Before uploading, the file is marked so that users can quickly understand the information of the Sketch file.
[0014] In the second aspect, an embodiment of the present application provides a file sharing device, including an acquisition module for acquiring a Sketch file; a processing module for parsing the Sketch file to generate a corresponding temporary file; and an upload module for uploading the temporary file to a designated shared location so as to share the temporary file through the designated shared location.
[0015] In one embodiment, the file sharing device further includes: a storage module, wherein the storage module is used to store the temporary file in a pre-created temporary folder.
[0016] In one embodiment, the temporary folder includes multiple classification folders, wherein the classification folders include a slice resource folder, a material folder, and an HTML folder; the storage module is also used to store each file in the temporary file into the corresponding classification folder based on the type of each file in the temporary file.
[0017] In one embodiment, the processing module is further used to parse the Sketch file to generate a first annotation file; and insert the first annotation file into a preset HTML template to generate a first HTML file, wherein the first annotation file and the first HTML file are both temporary files.
[0018] In a third aspect, an embodiment of the present application provides a non-volatile storage medium storing computer-readable instructions, wherein a processor executes a file sharing method as described in any one of the first aspect by calling the computer-readable instructions, or stores a program of a file sharing device as described in the second aspect.
[0019] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the file sharing method as described in the first aspect or implements the functions of the file sharing device as described in the second aspect.
[0020] Other features and advantages of the present disclosure will be set forth in the following description, or some features and advantages may be inferred or unambiguously determined from the description, or may be learned by implementing the above-mentioned technology of the present disclosure.
[0021] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the preferred embodiments of the present application are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0023] Figure 1 A structural diagram of an electronic device provided in an embodiment of the present application;
[0024] Figure 2 A flowchart of a file sharing method provided in an embodiment of the present application;
[0025] Figure 3 A structural block diagram of a file sharing device provided in an embodiment of the present application.
[0026] Icon: file sharing device 200; acquisition module 210; processing module 220; storage module 230; upload module 240. DETAILED DESCRIPTION
[0027] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0028] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings. The terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0029] See also Figure 1 An electronic device provided in an embodiment of the present application includes a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor. When the processor executes the program, the file sharing method and / or the file sharing device provided later in the present application are implemented. Figure 1 FIG. 1 is a schematic diagram of the internal structure of an electronic device according to an embodiment of the present application. The electronic device may be a computer or a mobile terminal. Figure 1 The electronic device includes a processor, a non-volatile storage medium, an internal memory, an input device, a display screen, and a network interface connected via a system bus. The non-volatile storage medium of the electronic device can store an operating system and computer-readable instructions. When the computer-readable instructions are executed, the processor can execute a file sharing method of each embodiment of the present application. The specific implementation process of the method can be referred to Figure 2 The specific content of the present invention may enable the processor to implement a file sharing device provided in each embodiment of the present invention. The functional module structure of the device may refer to Figure 3 The content of the present invention will be described in detail later on in the following text. The processor of the electronic device is used to provide computing and control capabilities to support the operation of the entire electronic device. The internal memory may store computer-readable instructions, which, when executed by the processor, may enable the processor to execute a file sharing method and / or a file sharing device provided later. The input device of the electronic device is used to input various parameters, the display screen of the electronic device is used for display, and the network interface of the electronic device is used for network communication. Those skilled in the art will understand that Figure 1 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0030] In this embodiment, the file sharing method or device can be implemented in the form of a computer-readable instruction. The computer-readable instruction can be in the form of a computer-readable instruction. Figure 1The electronic device stores Sketch software and a computer program for implementing the sharing method, wherein the computer program may be a program for implementing the file sharing method of the present application, or a file sharing device provided by the present application. Exemplarily, the file sharing device may be used in the form of a plug-in of the Sketch software, so that the processor can execute the file sharing method provided by the present application when executing the program or using the file sharing device.
[0031] In one embodiment, a code is stored in a memory, and the processor implements the file sharing method provided in the embodiment of the present application and / or the file sharing device provided later by calling the code of the memory. Specifically, the core part of the file sharing method implemented in the embodiment of the present application is mainly implemented using src / export.js, and the code can be used to complete the parsing, exporting, uploading and other functions of Sketch files. Among them, src / export.js may include: init function, export function, and uploadFile function. Exemplarily, the init function is used for initialization and saving some data, such as the type of data, operation prompts, etc., which do not need to be initialized every time; the export function is used to parse the source file, create a temporary directory, export HTML files, etc.; the uploadFile function is used to traverse all files and call the interface for uploading. In addition, the code (or function) used may also include assets / template.html, which is a template required for the exported HTML file.
[0032] Next, the details of the file sharing method provided in the embodiment of the present application are introduced.
[0033] Please refer to Figure 2 , Figure 2 A flowchart of a file sharing method provided in one embodiment of the present application, the method may include the following steps.
[0034] S111, obtain the Sketch file.
[0035] In one embodiment, the method for obtaining a Sketch file may be to obtain the Sketch file at a specified location. For example, after the user completes the creation using the Sketch software, when the Sketch file is saved in the Sketch software, the Sketch file sharing method provided in this embodiment may be directly used to upload the completed Sketch file in the Sketch software; or the Sketch file that has been completed may be moved to a specified location, and then the Sketch file may be obtained by calling a function; or the Sketch file that has been completed may be saved in a specified location through the Sketch software, and the Sketch file may be obtained by calling a function. The specific acquisition method may be set according to the needs of the user.
[0036] After S111 is completed, a step may be further executed to create a temporary folder.
[0037] In this embodiment, when creating a temporary folder, the address of the storage folder can be fixed, or the specific location of the temporary folder can be set according to the needs. The name of the temporary folder can be randomly generated, or it can be set or modified manually. Exemplarily, the storage location and file name of the temporary file can be:
[0038] / Library / Caches / com.bohemiancoding.Sketch3 / fsCachedData / we-plugin-output-xxxxxx,
[0039] Among them, xxxxxx is a 6-digit string composed of a random combination of numbers, uppercase and lowercase letters. The file name of the temporary folder is we-plugin-output-xxxxxx, and the storage address is / Library / Caches / com.bohemiancoding.Sketch3 / fsCachedData.
[0040] In one embodiment, after the temporary folder is created, a subfolder, i.e., a classification folder, can be created in the temporary folder. The classification folder is used to store temporary files generated by parsing Sketch files. Exemplarily, a slice resource folder can be created in the temporary folder to store slice resources; a material folder can be created to store material files; and an HTML folder can be created to store files in HTML format. Exemplarily, the slice resource folder can be named assets, the material folder can be named preview, and the HTML folder can be named links.
[0041] S121, parsing the Sketch file to generate a corresponding temporary file.
[0042] In one embodiment, the temporary files include slice resource files, material files and HTML files.
[0043] In one embodiment, the data volume of the temporary file is smaller than the data volume of the Sketch file. Since the parsed temporary file is not a Sketch file and the data volume is smaller than the Sketch file, uploading the temporary file is more efficient and faster.
[0044] In one embodiment, the method of parsing a Sketch file to generate a corresponding temporary file includes: parsing the Sketch file, looping through the artboards of the Sketch file, and generating different types of temporary files. Exemplarily, by parsing the Sketch file, a temporary file in json format, i.e., a first annotation file, is generated, wherein the temporary file in json format is a type of slice resource file; and the Sketch file can also be parsed to generate a corresponding material file, and the material file can be an .png file.
[0045] In this embodiment, after determining whether the artboard of the Sketch file is selected, the init method can be used for initialization to save some data, and then the export function is called to parse the Sketch file and the artboard to export the slice resource file and the material file.
[0046] In one embodiment, a first annotation file is generated by parsing a Sketch file; the first annotation file is inserted into a preset HTML template to generate a first HTML file; wherein, the first HTML file and the first annotation file are both temporary files. By inserting the first annotation file into the preset HTML template, the original format of the Sketch file can be converted into a file in HTML format. Specifically, the first annotation file is in json format, which is a type of slice resource file, and the first HTML file is a type of HTML file. Therefore, the first annotation file and the first HTML file are both temporary files. By inserting the first annotation file into the preset HTML template, a first HTML file can be obtained, and users can view the Sketch file converted into an HTML file through terminals equipped with different operating systems, thereby realizing the sharing of Sketch files between different operating systems.
[0047] In this embodiment, the HTML template is pre-set, and before format conversion, the user can select the desired template for conversion. First, the Sketch file is parsed to generate data in json format, obtain the first annotation file, and then insert the first annotation file into the previously preset HTML template to generate the final HTML file, that is, the first HTML file. The first HTML file is a file after the design draft is annotated, and the annotation content is the data of the first annotation file. For example, the annotation content can be size, color or other content related to the design draft.
[0048] In this embodiment, the preset HTML can be exported through the assets / template.html function. The corresponding first HTML file is generated by using the export function.
[0049] In one embodiment, after the Sketch file is parsed, the temporary file is stored in a pre-created temporary folder.
[0050] In one embodiment, the temporary folder includes multiple classification folders, wherein the classification folders include a slice resource folder, a material folder, and an HTML folder. Based on the types of the files in the temporary file, each file in the temporary file is stored in a corresponding classification folder. For example, the slice resource file is stored in the assets folder, the material file is stored in the preview folder, and the first HTML file after annotation is stored in the HTML folder.
[0051] In one embodiment, after the Sketch file is parsed, a summary file is written into the temporary folder. For example, the summary file is index.html. It is understandable that the summary file is also a temporary file, but it does not need to be stored in the classification folder, and can be stored in the temporary folder. It is understandable that before uploading the temporary file, the temporary folder includes the index.html file, the slice resource folder, the material folder and the HTML folder, and each folder includes various corresponding temporary files.
[0052] In this embodiment, a temporary directory, that is, a summary file index.html, can be created through the export function.
[0053] After completing the above process, execute step S131.
[0054] S131, uploading the temporary file to the designated shared location, so as to share the temporary file through the designated shared location.
[0055] In one embodiment, after all temporary files are generated, the generated temporary files are uploaded, and the uploaded content is all folders and files in the temporary folder, that is, all temporary files generated by parsing, pre-created folders and written index.html files.
[0056] In one embodiment, before uploading the temporary file to the designated shared location, the designated shared location can also be determined based on the information entered by the user. The designated shared location is used to store and share temporary files of Sketch files. For example, if multiple teams work together to complete a project, the user can select the shared location of the project; if the same team completes the same project, the user can also select the shared location of the team; other shared locations can also be selected according to needs, such as company, personal or Internet. After the upload is completed, the temporary file is stored in the designated shared location (i.e., the shared location selected by the user) and is managed in a unified manner. Users (including uploaders and other users) can view or download temporary files stored in the designated shared location and perform other sharing operations.
[0057] In this embodiment, when selecting a designated shared location, you can also choose to upload all or part of the content. Exemplarily, you can upload the selected artboard or all artboards.
[0058] In this embodiment, the upload process uses the uploadFile function to traverse all files in the temporary folder and call the interface to upload all files and folders in the temporary folder.
[0059] In one embodiment, the upload progress is displayed during the upload process. For example, the file or folder currently being uploaded, the remaining folders to be uploaded, the size of the uploaded file, etc. are displayed.
[0060] In one embodiment, after the upload is completed, the display interface may display that the upload is successful, and prompt the user to confirm that the upload is complete, or the user may be prompted to view the upload result, or both prompts may appear at the same time. Exemplarily, a prompt interface pops up, the prompt interface includes a prompt that the upload is complete, and an address (the address of the specified shared location) is set below the prompt. The user can click the address to directly jump to the interface of the specified shared location. A confirmation button may also be set on the display interface, and the user can confirm that the upload is complete and exit by clicking the confirmation button.
[0061] In one embodiment, after an upload fails, the reason for the failure and the location where the problem occurred can be displayed on the display interface to assist the user in resolving the problem or re-uploading.
[0062] Please refer to Figure 2Based on the same inventive concept, an embodiment of the present application provides a file sharing device 200, which includes: an acquisition module 210, a processing module 220 and an upload module 240.
[0063] In one embodiment, the acquisition module 210 is used to acquire a Sketch file.
[0064] In this embodiment, the acquisition module 210 can directly acquire the Sketch file from the Sketch software. In addition, the user can also import the specified Sketch file into the file sharing device 200, or the acquisition module 210 can use a calling function to acquire the Sketch file from a specified location.
[0065] In this embodiment, the acquisition module 210 connects the file sharing device to the Sketch software. Exemplarily, the file sharing device is installed in the Sketch software in the form of a plug-in of the Sketch software, and the file sharing device can be directly used in the Sketch software to upload the completed Sketch file.
[0066] In one embodiment, the processing module 220 is used to parse the Sketch file and generate a corresponding temporary file.
[0067] In one embodiment, the upload module 240 is used to upload the temporary file to a designated shared location, so as to share the temporary file through the designated shared location.
[0068] In this embodiment, the upload module 240 is used to connect the file sharing device to the designated shared location, where the designated shared location can be a web page, server, cloud or other form of storage device or storage tool, so that users (including uploaders and other users) can enter the designated shared location and view or download temporary files stored therein.
[0069] In one embodiment, the file sharing device 200 further includes a storage module 230, and the storage module 230 is used to store temporary files in a pre-created temporary folder.
[0070] In one embodiment, the temporary folder includes multiple classification folders, wherein the classification folders include a slice resource folder, a material folder, and an HTML folder. The storage module 230 stores each file in the temporary file into a corresponding classification folder based on the type of each file in the temporary file.
[0071] In this embodiment, before parsing the Sketch file, the storage module is also used to create a temporary folder and a classification folder. Exemplarily, the storage module can create a temporary folder at a specified location inside the storage module or at other locations of the terminal. The name of the temporary folder is randomly generated, and a classification folder is created in the temporary folder, including a slice resource folder assets, a material folder preview, and an HTML folder links.
[0072] In one embodiment, the processing module 220 is further used to parse the Sketch file to generate a first annotation file; and to insert the first annotation file into a preset HTML template to generate a first HTML file.
[0073] In this embodiment, the first annotation file generated by the processing module after parsing the Sketch file is a data file in json format, which includes information such as the size of the Sketch file. The first annotation file is inserted into a preset HTML template, and the Sketch file can be converted into an HTML format file, which also includes the annotation information, that is, the first HTML file is an HTML format file after the annotation is completed.
[0074] It can be understood that the file sharing device 200 provided in the present application corresponds to the file sharing method provided in the present application. To make the specification concise, the same or similar parts can refer to the contents of the file sharing method part, which will not be repeated here.
[0075] Each module in the above-mentioned file sharing device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a server in the form of hardware, or can be stored in a memory in a server in the form of software, so that the processor can call and execute operations corresponding to each module. The processor can be a central processing unit (CPU), a microprocessor, a single-chip microcomputer, etc.
[0076] The above-mentioned file sharing method and / or file sharing device can be implemented in the form of a computer-readable instruction. The computer-readable instruction can be in the form of Figure 1 The electronic device shown is running.
[0077] Based on the same inventive concept, an embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program runs on a computer, the computer executes a file sharing method.
[0078] In the embodiments provided in the present application, it should be understood that the disclosed methods and devices can also be implemented in other ways. The device embodiments described above are merely illustrative. The functional modules in the various embodiments of the present application can be integrated together to form an independent part, or each module can exist separately, or two or more modules can be integrated to form an independent part.
[0079] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0080] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0081] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
Claims
1. A file sharing method, characterized in that: include: Get the Sketch file; Parsing the Sketch file and generating a corresponding temporary file, wherein the data volume of the temporary file is smaller than the data volume of the Sketch file; Uploading the temporary file to a designated shared location to share the temporary file through the designated shared location; Before uploading the temporary file to the designated shared location, the method further includes: Storing the temporary file in a pre-created temporary folder; Parsing the Sketch file and generating corresponding temporary files, including: parsing the Sketch file, looping through the artboards of the Sketch file, and generating different types of temporary files; The temporary folder includes multiple classification folders, wherein the classification folders include a slice resource folder, a material folder, and an HTML folder. Storing the temporary file in a pre-created temporary folder includes: based on the type of each file in the temporary file, storing each file in the temporary file into the corresponding classification folder.
2. The method according to claim 1, characterized in that: Before uploading the temporary file to the designated shared location, the method further includes: determining the designated shared location based on information entered by the user.
3. The method according to claim 1, characterized in that The parsing of the Sketch file to generate a corresponding temporary file includes: Parsing the Sketch file to generate a first annotation file; Inserting the first annotation file into a preset HTML template to generate a first HTML file; The first HTML file and the first annotation file are both temporary files.
4. A file sharing device, applied to Sketch software, characterized in that: include: Get module, used to get Sketch files; A processing module, used for parsing the Sketch file to generate a corresponding temporary file; An uploading module, used for uploading the temporary file to a designated shared location, so as to share the temporary file through the designated shared location; The file sharing device further comprises: a storage module, the storage module being used to store the temporary file in a pre-created temporary folder; The processing module is specifically used to: parse the Sketch file, loop through the artboards of the Sketch file, and generate different types of temporary files; The temporary folder includes multiple classification folders, wherein the classification folders include a slice resource folder, a material folder, and an HTML folder; the storage module is used to store each file in the temporary file into the corresponding classification folder based on the type of each file in the temporary file.
5. The file sharing device according to claim 4, characterized in that: The processing module is further used to parse the Sketch file to generate a first annotation file; and insert the first annotation file into a preset HTML template to generate a first HTML file, wherein the first annotation file and the first HTML file are both temporary files.
6. A computer-readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed on a computer, the computer is enabled to execute the file sharing method according to any one of claims 1 to 3.
7. An electronic device comprising a memory and a processor, characterized in that: The memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the file sharing method according to any one of claims 1 to 3.
