CN113590175A - Method, device and equipment for creating dependency directory - Google Patents

Method, device and equipment for creating dependency directory Download PDF

Info

Publication number
CN113590175A
CN113590175A CN202110741240.7A CN202110741240A CN113590175A CN 113590175 A CN113590175 A CN 113590175A CN 202110741240 A CN202110741240 A CN 202110741240A CN 113590175 A CN113590175 A CN 113590175A
Authority
CN
China
Prior art keywords
dependency
target
directory
dependent
index information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110741240.7A
Other languages
Chinese (zh)
Inventor
顾珠彬
吴珂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alipay Hangzhou Information Technology Co Ltd
Original Assignee
Alipay Hangzhou Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alipay Hangzhou Information Technology Co Ltd filed Critical Alipay Hangzhou Information Technology Co Ltd
Priority to CN202110741240.7A priority Critical patent/CN113590175A/en
Publication of CN113590175A publication Critical patent/CN113590175A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present specification provides a method, an apparatus, and a device for creating a dependent directory, in which a user space file system is used to directly read index information of a dependent packet and create an index node dependent on a directory, thereby omitting a process of manually creating a dependent index node after dependent installation, saving time for creating a dependent directory, and improving efficiency of creating a dependent directory and efficiency of installing dependent.

Description

Method, device and equipment for creating dependency directory
Technical Field
The present specification belongs to the field of computer technologies, and in particular, to a method, an apparatus, and a device for creating a dependent directory.
Background
With the development of computer internet technology, more and more business projects are spread on the network, a plurality of dependency packages are usually contained in the business projects, and how to determine dependency information of the dependency packages of the business projects becomes a focus of attention.
In general, the dependency information of the dependency packages can be managed by a dependency package manager, such as by creating a dependency tree and a dependency directory that characterize the dependency relationships of the respective items. In general, the creation of the dependency directory is that after the dependency package is downloaded, decompressed and installed, the new dependency can be manually added to the existing dependency directory.
Disclosure of Invention
An object of the embodiments of the present specification is to provide a method, an apparatus, and a device for creating a dependent directory, which improve the creating efficiency of the dependent directory and the installation efficiency of the dependent directory.
In one aspect, an embodiment of the present specification provides a method for creating a dependent directory, where the method includes:
reading a dependency compression packet of a target dependency by using a user space file system, and acquiring dependency index information of the target dependency;
establishing a soft link corresponding to the target dependency according to the dependency index information;
and adding the target dependency to a dependency directory according to the dependency index information and the soft link.
In another aspect, the present specification provides a dependent directory creating apparatus comprising:
the index reading module is used for reading the dependency compression packet of the target dependency by utilizing a user space file system and acquiring the dependency index information of the target dependency;
a soft link creating module for creating a soft link corresponding to the target dependency according to the dependency index information;
and the dependent directory adding module is used for adding the target dependence into the dependent directory according to the dependence index information and the soft link.
In another aspect, the present specification provides a dependency directory creating device, including at least one processor and a memory for storing processor-executable instructions, where the processor executes the instructions to implement the dependency directory creating method.
According to the method, the device and the equipment for creating the dependency directory, the index information of the dependency package is directly read by using the user space file system, the index node depending on the directory is created, the process of manually creating the dependency index node after dependency installation is omitted, the creation time of the dependency directory is saved, the creation efficiency of the dependency directory and the installation efficiency of the dependency are improved, and the speed of dependency installation can be improved by about 2 seconds.
Drawings
In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present specification, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative effort.
FIG. 1 is a flowchart illustrating an embodiment of a method for creating a dependency directory provided in an embodiment of the present specification;
FIG. 2 is a diagram illustrating the structure of a dependency directory in one embodiment of the present description;
FIG. 3 is a schematic diagram illustrating a principle of construction of a dependency directory for different items in an example scenario of the present specification;
FIG. 4 is a block diagram of an embodiment of a device for creating a dependency directory provided in the present specification;
fig. 5 is a block diagram of a hardware configuration of a directory-dependent creation server in one embodiment of the present description.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present specification, and not all of the embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification without any inventive step should fall within the scope of protection of the present specification.
The current front-end development almost completely unbeknownst packet manager npm (node pkmakeinst, front-end dependent packet manager) npm may be referred to as a node packet manager, and the main functions may include managing node packets (dependent packets), such as: install, uninstall, update, view, search, publish, and the like. The dependent install npm may generate a dependent directory file, i.e., node _ modules, which may be understood as the final run directory of the dependent package. When generating the user node modules scheme, after all the dependencies are installed, symlink is manually created to simulate the dependency directory structure required by the construct npm according to the existing dependency directory for the npm-compatible ecology.
In the embodiment of the present specification, a user space file system, that is, fuse (file in user space) is used to directly read a dependent compressed packet, obtain dependent index information, and create a soft link corresponding to an index, so that creation of a dependent directory can be directly completed without decompressing and installing the dependent packet, dependent installation is realized, and dependent installation efficiency is improved.
Fig. 1 is a flowchart illustrating an embodiment of a method for creating a dependency directory according to an embodiment of the present disclosure. Although the present specification provides the method steps or apparatus structures as shown in the following examples or figures, more or less steps or modules may be included in the method or apparatus structures based on conventional or non-inventive efforts. In the case of steps or structures which do not logically have the necessary cause and effect relationship, the execution order of the steps or the block structure of the apparatus is not limited to the execution order or the block structure shown in the embodiments or the drawings of the present specification. When the described method or module structure is applied to a device, a server or an end product in practice, the method or module structure according to the embodiment or the figures may be executed sequentially or in parallel (for example, in a parallel processor or multi-thread processing environment, or even in an implementation environment including distributed processing and server clustering).
The creating method of the dependent directory provided in the embodiment of the present specification may be applied to a server or a client and other terminal devices, for example: a server, a computer, a smart phone, a tablet computer, and the like, which are not specifically limited in this specification, as shown in fig. 1, the method may include the following steps:
and 102, reading the dependency compression packet of the target dependency by using a user space file system, and acquiring dependency index information of the target dependency.
In a specific implementation, the target dependency may be understood as a dependency or dependency package to be installed, such as: can be an application program or an applet program or a plug-in, a component, etc., and the general installation of the dependency needs to be performed in a dependency package, which is generally in a compressed package format such as: tgz bag. When a client needs to install an item or a dependency, the client may request the server to download a corresponding dependency package, and the item may be understood as a type of service, such as: a payment service, an item may include one or more dependencies. The downloading of all dependent compressed packages corresponding to the item can be requested at one time, or the downloading of one dependent compressed package can be requested, that is, the target dependency can be one or more. The user space file system, namely the fuse system, refers to a file system completely realized in a user mode, and a user can customize and realize the file system of the user in the user space through the fuse. In the embodiment of the description, when constructing the dependent directory, the self-defined file system can be constructed by using the fuse system, the dependent compressed packet is directly read by using the custom file system, the dependent index information of the target dependence is obtained, and the dependent packet does not need to be decompressed. The dependency index information may be understood as information defining a dependency on a specific location of the compressed packet.
And 104, creating a soft link corresponding to the target dependency according to the dependency index information.
In a specific implementation process, a soft link is symlink, and a dependency package generally does not have symlink. Soft links (also called symbolic links) are different from hard links, the content stored in a user data block of a file is pointed to by the path name of another file, the soft links are ordinary files, the content in the data block is only a little special, and the soft links can be created for the files or directories. When node _ modules, namely the dependency directory, is constructed based on fuse, an inode node simulating npm directory structure is constructed in advance, and the process of manually creating symlink after the dependency is installed can be omitted.
And 106, adding the target dependency into a dependency directory according to the dependency index information and the soft link.
In a specific implementation process, after the soft link is created, the target dependency can be added to the dependency directory based on the dependency index information and the soft link, and then the installation of the target dependency is completed. Fig. 2 is a schematic structural diagram of a dependency directory in an embodiment of this specification, and as shown in fig. 2, a dependency directory in the embodiment of this specification may include a dependent file, a dependent directory, and a symlink, where the file may refer to dependent data information, and the directory may characterize a dependent relationship, and the like. In the general node _ modules structure, symlink is created after a dependency compression package is downloaded and decompressed, a node _ modules directory in the embodiment of the description is a custom file system based on a fuse structure, symlink is also a file, and the symlink can be simultaneously well structured but not later when the file and the directory of the file system are structured, so that the structure time of the node _ modules can be saved.
If the method in the embodiment of the present description is applied to the server, the server may generate the dependency directory and then send the dependency directory to the client, so that the client manages the dependency.
According to the method for creating the dependency directory provided by the embodiment of the description, the index information of the dependency package is directly read by using the user space file system, and the index node depending on the directory is created, so that the process of manually creating the dependency index node after dependency installation is omitted, the creation time of the dependency directory is saved, the creation efficiency of the dependency directory and the installation efficiency of the dependency are improved, and the speed of dependency installation can be improved by about 2 seconds after verification.
In some embodiments, the reading the dependency compressed package of the target dependency by using the user space file system includes:
and inquiring whether the dependency compression packet of the target dependency exists in the cache, if not, downloading the dependency compression packet of the target dependency, reading the dependency compression packet of the target dependency by using a user space file system, and acquiring the dependency index information of the target dependency.
In a specific implementation process, in the process of installing npm dependency packages, each dependency tgz installation package is cached in a disk of a user, whether existing data exist in the local cache of the dependency to be downloaded can be judged in advance when the dependency is installed each time, if yes, repeated downloading is not needed, otherwise, the data is downloaded again, repeated downloading of the data is avoided, and data processing efficiency is improved.
In addition, in some embodiments of the present specification, the reading the dependency compressed package that the target depends on by using the user space file system includes:
and inquiring whether the dependency compression packet of the target dependency exists in the cache, and if so, directly reading the dependency compression packet of the target dependency in the cache to acquire the dependency index information of the target dependency.
In a specific implementation process, the embodiment of the present specification adopts a form of multiplexing cache, and after determining that a target-dependent compressed package already exists in the cache, the node _ modules may be constructed by directly reading the cached dependent compressed package through a fuse system and a custom file system, that is, directly reading the dependent compressed package in the cache to obtain target-dependent index information, without copying the tgz package to an item directory, so that time for copying files is saved, and disk occupation caused by copying files is directly saved.
In some embodiments of the present description, the method further comprises:
and saving the downloaded dependency compression package of the target dependency in the cache.
In a specific implementation process, each downloaded dependency compression package may be stored in a cache, for example: and the data is cached in a user disk for standby, so that the occupied space of the disk depending on installation is reduced.
Fig. 3 is a schematic diagram of a construction principle of a dependency directory of different items in an example scenario of the present specification, and as shown in fig. 3, when a user installs a dependency of "item one", because the neutralized dependency cache does not have any data, the dependency 1-5 is downloaded to the cache directory, and a node _ modules directory of "item one" is constructed through a customized file system based on the five dependency packages (tgz format). When the user installs the dependency of item two, because the cache data of the dependency 3 exists locally, only the dependency 6-8 needs to be downloaded additionally to the cache directory at this time, and the node _ modules directory of the item two is constructed based on the dependency 3 and the dependency 6-8. The node _ modules directory for an item is also constructed from a custom file system rather than copying all required dependencies to the item directory. The installation time can be reduced by omitting the action of copying. Meanwhile, the same dependency package is reused continuously, so that the time for downloading the same dependency package each time can be reduced, and the extra disk space occupied by the same dependency is also reduced.
The method for creating the dependency directory provided by the embodiment of the description innovatively uses a fuse scheme, optimizes the original use mode of decompressing the npm tgz packet into a mode without decompression, and simultaneously uses a central cache to cache the tgz packet in the local of a user, thereby reducing the installation time of dependency and reducing the occupation of the space of an installed disk. The occupation of the installed disk is reduced by 90% through verification, and the installation time is reduced by 54%. As more and more items are installed by users, the more the dependence can be reused, and the more obvious the optimization effect is.
In the present specification, each embodiment of the method is described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. The relevant points can be obtained by referring to the partial description of the method embodiment.
Based on the above-mentioned method for creating a dependent directory, one or more embodiments of the present specification further provide an apparatus for creating a dependent directory. The apparatus may include apparatus (including distributed systems), software (applications), modules, plug-ins, servers, clients, etc. that use the methods described in embodiments of the present specification in conjunction with hardware where necessary to implement the methods. Based on the same innovative conception, embodiments of the present specification provide an apparatus as described in the following embodiments. Since the implementation scheme of the apparatus for solving the problem is similar to that of the method, the specific apparatus implementation in the embodiment of the present specification may refer to the implementation of the foregoing method, and repeated details are not repeated. As used hereinafter, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Specifically, fig. 4 is a schematic block diagram of an embodiment of a device for creating a dependency directory provided in this specification, and as shown in fig. 4, the device for creating a dependency directory provided in this specification may include:
an index reading module 41, configured to read a dependency compression packet that a target depends on by using a user space file system, and obtain dependency index information that the target depends on;
a soft link creating module 42, configured to create a soft link corresponding to the target dependency according to the dependency index information;
and a dependency directory adding module 43, configured to add the target dependency to a dependency directory according to the dependency index information and the soft link.
In some embodiments of the present description, the index reading module is specifically configured to:
and inquiring whether the dependency compression packet of the target dependency exists in the cache, if not, downloading the dependency compression packet of the target dependency, reading the dependency compression packet of the target dependency by using a user space file system, and acquiring the dependency index information of the target dependency.
In some embodiments of the present invention, the present specification,
the index reading module is specifically configured to:
and inquiring whether the dependency compression packet of the target dependency exists in the cache, and if so, directly reading the dependency compression packet of the target dependency in the cache to acquire the dependency index information of the target dependency.
In some embodiments of the present specification, the apparatus further includes a data caching module configured to:
and saving the downloaded dependency compression package of the target dependency in the cache.
The embodiment of the specification innovatively uses a fuse scheme, optimizes the original use mode of decompressing the npm tgz packet into a mode without decompression, and simultaneously uses a central cache to cache the tgz packet in the local of a user, thereby reducing the installation time of dependence and reducing the occupation of the space of an installed disk.
It should be noted that the above-mentioned apparatus may also include other embodiments according to the description of the corresponding method embodiment. The specific implementation manner may refer to the description of the above corresponding method embodiment, and is not described in detail herein.
An embodiment of the present specification further provides a dependent directory creating device, including: at least one processor and a memory for storing processor-executable instructions, the processor implementing the dependency directory creation method of the above embodiments when executing the instructions, such as:
downloading a dependency compression package of a target dependency;
reading the dependency compression packet by using a user space file system to acquire dependency index information of the target dependency;
establishing a soft link corresponding to the target dependency according to the dependency index information;
and adding the target dependency to a dependency directory according to the dependency index information and the soft link.
It should be noted that the above-described device or system may also include other embodiments according to the description of the method embodiments. The specific implementation manner may refer to the description of the related method embodiment, and is not described in detail herein.
The creating device and the creating equipment depending on the catalog provided by the specification can also be applied to various data analysis processing systems. The system or server or terminal or device may be a single server, or may include a server cluster, a system (including a distributed system), software (applications), actual operating devices, logical gate devices, quantum computers, etc. using one or more of the methods described herein or one or more embodiments of the system or server or terminal or device, in combination with necessary end devices implementing hardware. The system for checking for discrepancies may comprise at least one processor and a memory storing computer-executable instructions that, when executed by the processor, implement the steps of the method of any one or more of the embodiments described above.
The method embodiments provided by the embodiments of the present specification can be executed in a mobile terminal, a computer terminal, a server or a similar computing device. Taking the example of the operation on the server, fig. 5 is a hardware structure block diagram of the creating server of the dependent directory in an embodiment of the present specification, and the computer terminal may be the creating server of the dependent directory or the creating device of the dependent directory in the above embodiment. As shown in fig. 5, the server 10 may include one or more (only one shown) processors 100 (the processors 100 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA, etc.), a non-volatile memory 200 for storing data, and a transmission module 300 for communication functions. It will be understood by those skilled in the art that the structure shown in fig. 5 is only an illustration and is not intended to limit the structure of the electronic device. For example, the server 10 may also include more or fewer plug-ins than shown in FIG. 5, and may also include other processing hardware, such as a database or multi-level cache, a GPU, or have a different configuration than shown in FIG. 5, for example.
The non-volatile memory 200 may be used to store software programs and modules of application software, such as program instructions/modules corresponding to the method for creating the dependency directory in the embodiment of the present specification, and the processor 100 executes various functional applications and resource data updates by executing the software programs and modules stored in the non-volatile memory 200. Non-volatile memory 200 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the non-volatile memory 200 may further include memory located remotely from the processor 100, which may be connected to a computer terminal through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission module 300 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal. In one example, the transmission module 300 includes a Network adapter (NIC) that can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission module 300 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The method or apparatus provided in this specification and described in the foregoing embodiments may implement service logic through a computer program and record the service logic on a storage medium, where the storage medium may be read and executed by a computer, and implement the effects of the solutions described in the embodiments of this specification, such as:
downloading a dependency compression package of a target dependency;
reading the dependency compression packet by using a user space file system to acquire dependency index information of the target dependency;
establishing a soft link corresponding to the target dependency according to the dependency index information;
and adding the target dependency to a dependency directory according to the dependency index information and the soft link.
The storage medium may include a physical device for storing information, and typically, the information is digitized and then stored using an electrical, magnetic, or optical media. The storage medium may include: devices that store information using electrical energy, such as various types of memory, e.g., RAM, ROM, etc.; devices that store information using magnetic energy, such as hard disks, floppy disks, tapes, core memories, bubble memories, and usb disks; devices that store information optically, such as CDs or DVDs. Of course, there are other ways of storing media that can be read, such as quantum memory, graphene memory, and so forth.
The method or apparatus for creating the dependency directory provided in the embodiments of the present specification may be implemented in a computer by a processor executing corresponding program instructions, for example, implemented in a PC end using a c + + language of a windows operating system, implemented in a linux system, or implemented in an intelligent terminal using android, iOS system programming languages, implemented in processing logic based on a quantum computer, or the like.
The embodiments of the present description are not limited to what must be consistent with industry communications standards, standard computer resource data updating and data storage rules, or what is described in one or more embodiments of the present description. Certain industry standards, or implementations modified slightly from those described using custom modes or examples, may also achieve the same, equivalent, or similar, or other, contemplated implementations of the above-described examples. The embodiments using the modified or transformed data acquisition, storage, judgment, processing and the like can still fall within the scope of the alternative embodiments of the embodiments in this specification.
For convenience of description, the above platform and terminal are described as being divided into various modules by functions and described separately. Of course, when implementing one or more of the present description, the functions of each module may be implemented in one or more software and/or hardware, or a module implementing the same function may be implemented by a combination of multiple sub-modules or sub-units, etc. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or plug-ins may be combined or integrated into another system, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
These computer program instructions may also be loaded onto a computer or other programmable resource data update apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, and the relevant points can be referred to only part of the description of the method embodiments. In the description of the specification, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the specification. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
The above description is merely exemplary of one or more embodiments of the present disclosure and is not intended to limit the scope of one or more embodiments of the present disclosure. Various modifications and alterations to one or more embodiments described herein will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement or the like made within the spirit and principle of the present specification should be included in the scope of the claims.

Claims (10)

1. A method of relying upon creation of a directory, the method comprising:
reading a dependency compression packet of a target dependency by using a user space file system, and acquiring dependency index information of the target dependency;
establishing a soft link corresponding to the target dependency according to the dependency index information;
and adding the target dependency to a dependency directory according to the dependency index information and the soft link.
2. The method of claim 1, wherein reading the target-dependent dependency compressed package using the user-space file system comprises:
and inquiring whether the dependency compression packet of the target dependency exists in the cache, if not, downloading the dependency compression packet of the target dependency, reading the dependency compression packet of the target dependency by using a user space file system, and acquiring the dependency index information of the target dependency.
3. The method of claim 1, wherein reading the target-dependent dependency compressed package using the user-space file system comprises:
and inquiring whether the dependency compression packet of the target dependency exists in the cache, and if so, directly reading the dependency compression packet of the target dependency in the cache to acquire the dependency index information of the target dependency.
4. The method of claim 3, further comprising:
and saving the downloaded dependency compression package of the target dependency in the cache.
5. The method of claim 1, applied to a server or a client.
6. An apparatus for creating a dependency directory, the apparatus comprising:
the index reading module is used for reading the dependency compression packet of the target dependency by utilizing a user space file system and acquiring the dependency index information of the target dependency;
a soft link creating module for creating a soft link corresponding to the target dependency according to the dependency index information;
and the dependent directory adding module is used for adding the target dependence into the dependent directory according to the dependence index information and the soft link.
7. The apparatus of claim 6, the index reading module to be specifically configured to:
and inquiring whether the dependency compression packet of the target dependency exists in the cache, if not, downloading the dependency compression packet of the target dependency, reading the dependency compression packet of the target dependency by using a user space file system, and acquiring the dependency index information of the target dependency.
8. The apparatus of claim 6, the index reading module to be specifically configured to:
and inquiring whether the dependency compression packet of the target dependency exists in the cache, and if so, directly reading the dependency compression packet of the target dependency in the cache to acquire the dependency index information of the target dependency.
9. The apparatus of claim 8, the apparatus further comprising a data caching module to:
and saving the downloaded dependency compression package of the target dependency in the cache.
10. A dependent directory creation apparatus comprising: at least one processor and a memory for storing processor-executable instructions, the processor implementing the method of any one of claims 1-5 when executing the instructions.
CN202110741240.7A 2021-06-30 2021-06-30 Method, device and equipment for creating dependency directory Pending CN113590175A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110741240.7A CN113590175A (en) 2021-06-30 2021-06-30 Method, device and equipment for creating dependency directory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110741240.7A CN113590175A (en) 2021-06-30 2021-06-30 Method, device and equipment for creating dependency directory

Publications (1)

Publication Number Publication Date
CN113590175A true CN113590175A (en) 2021-11-02

Family

ID=78245623

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110741240.7A Pending CN113590175A (en) 2021-06-30 2021-06-30 Method, device and equipment for creating dependency directory

Country Status (1)

Country Link
CN (1) CN113590175A (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030167355A1 (en) * 2001-07-10 2003-09-04 Smith Adam W. Application program interface for network software platform
US20040015831A1 (en) * 2001-01-31 2004-01-22 Bowhill Allan J.C. Method and apparatus for building software packages
CN103530148A (en) * 2013-09-18 2014-01-22 国云科技股份有限公司 Distribution method for large-scale Linux software package
CN105786805A (en) * 2014-12-15 2016-07-20 乐视移动智能信息技术(北京)有限公司 Intelligent mobile terminal, document manager and file display method of same
US20170091296A1 (en) * 2015-09-25 2017-03-30 Netapp, Inc. Object storage backed file system
CN107391161A (en) * 2016-05-17 2017-11-24 阿里巴巴集团控股有限公司 A kind of JavaScript modules installation method and device
CN109634687A (en) * 2018-12-19 2019-04-16 恒为科技(上海)股份有限公司 The starting method and apparatus of application software in a kind of embedded Linux system
CN110096280A (en) * 2019-03-18 2019-08-06 中国平安人寿保险股份有限公司 Creation method, device, computer installation and the storage medium of code engineering
CN110162332A (en) * 2019-05-20 2019-08-23 深圳前海微众银行股份有限公司 A kind of construction method and system of RN project
CN110990023A (en) * 2019-12-16 2020-04-10 上海钧正网络科技有限公司 aar file dependency uploading method and device, storage medium and electronic equipment
CN111552489A (en) * 2020-03-31 2020-08-18 支付宝(杭州)信息技术有限公司 User mode file system hot upgrading method, device, server and medium
CN112181423A (en) * 2020-09-04 2021-01-05 招商局金融科技有限公司 Project construction method and device based on configuration file, computer equipment and medium
US10958732B1 (en) * 2020-02-03 2021-03-23 Michael Jeffrey Procopio Serverless archive file creation and extraction system and serverless, in-browser, cloud storage enabled methods for opening, decompressing, and creating archive files

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040015831A1 (en) * 2001-01-31 2004-01-22 Bowhill Allan J.C. Method and apparatus for building software packages
US20030167355A1 (en) * 2001-07-10 2003-09-04 Smith Adam W. Application program interface for network software platform
CN103530148A (en) * 2013-09-18 2014-01-22 国云科技股份有限公司 Distribution method for large-scale Linux software package
CN105786805A (en) * 2014-12-15 2016-07-20 乐视移动智能信息技术(北京)有限公司 Intelligent mobile terminal, document manager and file display method of same
US20170091296A1 (en) * 2015-09-25 2017-03-30 Netapp, Inc. Object storage backed file system
CN107391161A (en) * 2016-05-17 2017-11-24 阿里巴巴集团控股有限公司 A kind of JavaScript modules installation method and device
CN109634687A (en) * 2018-12-19 2019-04-16 恒为科技(上海)股份有限公司 The starting method and apparatus of application software in a kind of embedded Linux system
CN110096280A (en) * 2019-03-18 2019-08-06 中国平安人寿保险股份有限公司 Creation method, device, computer installation and the storage medium of code engineering
CN110162332A (en) * 2019-05-20 2019-08-23 深圳前海微众银行股份有限公司 A kind of construction method and system of RN project
CN110990023A (en) * 2019-12-16 2020-04-10 上海钧正网络科技有限公司 aar file dependency uploading method and device, storage medium and electronic equipment
US10958732B1 (en) * 2020-02-03 2021-03-23 Michael Jeffrey Procopio Serverless archive file creation and extraction system and serverless, in-browser, cloud storage enabled methods for opening, decompressing, and creating archive files
CN111552489A (en) * 2020-03-31 2020-08-18 支付宝(杭州)信息技术有限公司 User mode file system hot upgrading method, device, server and medium
CN112181423A (en) * 2020-09-04 2021-01-05 招商局金融科技有限公司 Project construction method and device based on configuration file, computer equipment and medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ADITYA RAIGARHIA ET AL: "Performance and Extension of user space file Systems", 《PROCEEDING OR THE 2010 ACM SYMPOSIUM ON APPLIED COMPUTING》, 31 March 2010 (2010-03-31) *
吴春龙: "基于Linux的透明加密文件系统", 《中国知网硕士学位论文电子期刊》, vol. 2013, no. 8, 15 August 2013 (2013-08-15) *

Similar Documents

Publication Publication Date Title
CN107844400B (en) Log data verification method and device
CN110413346B (en) Parameter updating method and device
RU2613531C2 (en) File sharing method, terminal and relay server
CN106462430B (en) Application upgrade package obtaining method and device
CN103645910A (en) Methods for updating applications
CN104156225A (en) Downloading method, system and server for installation package
CN105407130A (en) Mobile client plug-in system and mobile client plug-in processing method
CN110989939A (en) Data cache processing method, device and equipment and cache component
JP2006190252A (en) System for communicating information processing system image via network and its method
CN110765165A (en) Method, device and system for synchronously processing cross-system data
CN104881454A (en) Updating method and system of parameter
CN112988169A (en) Application installation method and device, terminal equipment, server and storage medium
CN109831476A (en) Installation kit method for down loading, device, electronic equipment and storage medium
CN110532016B (en) Version management method, version updating method and version management system
US20150234853A1 (en) Methods Circuits Apparatuses Systems and Associated Computer Executable Code for Data Deduplication
CN110096295B (en) Multi-module mobile application thermal updating method and system based on reactivating
CN113077260A (en) Data access method and device based on block chain and electronic equipment
CN109857430B (en) Data processing method, payment method and device for cross-container offline package and client
CN113590175A (en) Method, device and equipment for creating dependency directory
CN113590190A (en) Dependency tree generation method, device and equipment
CN113296854B (en) Data loading method and system, electronic equipment and storage medium
CN109002710B (en) Detection method, detection device and computer readable storage medium
CN115840598A (en) Micro front-end architecture system, development method, device and medium based on application market
CN108008984A (en) A kind of resource file downloading updating method and device
CN114860202A (en) Project operation method, device, server and storage medium

Legal Events

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