CN109522274A - A kind of file access method - Google Patents

A kind of file access method Download PDF

Info

Publication number
CN109522274A
CN109522274A CN201910060451.7A CN201910060451A CN109522274A CN 109522274 A CN109522274 A CN 109522274A CN 201910060451 A CN201910060451 A CN 201910060451A CN 109522274 A CN109522274 A CN 109522274A
Authority
CN
China
Prior art keywords
file
network
local
access method
address
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
CN201910060451.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.)
Chengdu Digital China Sobey Technology Co Ltd
Original Assignee
Chengdu Digital China Sobey 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 Chengdu Digital China Sobey Technology Co Ltd filed Critical Chengdu Digital China Sobey Technology Co Ltd
Priority to CN201910060451.7A priority Critical patent/CN109522274A/en
Publication of CN109522274A publication Critical patent/CN109522274A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of file access methods, comprise the following steps, S1: passing through the network address character recognition local file or network file of specific format;S2: if network file, S3 is thened follow the steps;If local file, then S4 is executed;S3: utilizing window application page file address, Windows function address is mapped to local function address, network file is then transferred to the corresponding service routine processing of network, executes step S5;S4: local file is distributed to Windows API, executes step S5;S5: terminate.The solution of the present invention supports the operation of a variety of files, so that local file is consistent with network file browsing process, user can equally operate network file as local file, without any application layer transport protocol, it is high-efficient, it is at low cost, improve the quick access in video portrait identification Compare System to video image, and system is supported to carry out networking extension, conducive to sharing out the work and help one another in qualification process is improved.

Description

A kind of file access method
Technical field
The present invention relates to network file process field more particularly to a kind of file access methods.
Background technique
How local file system and network file are accessed simultaneously, is the emphasis of many people's researchs.But it if can be efficiently Access network file and local file, be the problem that many technical staff explore always.
For this purpose, derivative problem focuses primarily upon: if realizing local folders visiting from outside, and having ignored will be outer Portion's network file realizes the access mode for being similar to local file.
To solve the above-mentioned problems, the present invention proposes a kind of file access method.
Summary of the invention
To solve the above-mentioned problems, the present invention proposes that a kind of file access method, the document method comprise the following steps,
S1: pass through the network address character recognition local file or network file of specific format;
S2: if network file, S3 is thened follow the steps;If local file, then S4 is executed;
S3: window application page file address is utilized, Windows function address is mapped to local function address, network File is then transferred to the corresponding service routine processing of network, executes step S5;
S4: local file is distributed to Windows API, executes step S5;
S5: terminate.
In step S3 and step S4, first monitoring network environment is needed, and network parameter is arranged according to network environment.
The network environment includes network bandwidth, and the network parameter includes the file packet threshold size of file transmission.
The network bandwidth is positively correlated with the file packet threshold size.
If the network adaptability that the network environment is embodied is bad, by data buffer storage, rewriting data is improved into Power.
It in data transmission procedure, also monitors comprising data transmission failure, if transmission fault occurs, is reset using file Position is fault-tolerant to carry out.
The specific file format is<ServerPath>[Ipaddress@port]<FilenameExtension >。
The beneficial effects of the present invention are: (reading and writing, attribute are obtained, position, create, are deleted for 1. operations for supporting a variety of files Except etc.).2. local file is consistent with network file browsing process, user can equally grasp network file as local file Make, is not necessarily to any application layer transport protocol, it is high-efficient, it is at low cost.Compare System is identified in video portrait 3. being greatly improved In quick access to video image, and system is supported to carry out networking extension, conducive to sharing out the work and help one another in qualification process is improved.
Detailed description of the invention
Fig. 1 is structural schematic diagram of the invention;Fig. 2 is the structural schematic diagram of the preferred embodiment of the present invention.
Specific embodiment
For a clearer understanding of the technical characteristics, objects and effects of the present invention, now control attached drawing 1-2 illustrates this The specific embodiment of invention.
The present invention proposes that a kind of file access method, the document method comprise the following steps,
S1: pass through the network address character recognition local file or network file of specific format;
S2: if network file, S3 is thened follow the steps;If local file, then S4 is executed;
S3: window application page file address is utilized, Windows function address is mapped to local function address, network File is then transferred to the corresponding service routine processing of network, executes step S5;
S4: local file is distributed to Windows API, executes step S5;
S5: terminate.
In step S3 and step S4, first monitoring network environment is needed, and network parameter is arranged according to network environment.
The network environment includes network bandwidth, and the network parameter includes the file packet threshold size of file transmission.
The network bandwidth is positively correlated with the file packet threshold size.
Preferably, the network bandwidth is positively correlated in certain phase with file packet threshold size, when it is more than certain rank Duan Hou, file packet threshold size no longer change.
If the network adaptability that the network environment is embodied is bad, by data buffer storage, rewriting data is improved into Power.
It in data transmission procedure, also monitors comprising data transmission failure, if transmission fault occurs, is reset using file Position is fault-tolerant to carry out.
The specific file format is<ServerPath>[Ipaddress@port]<FilenameExtension >。
For example, C: Users cxj Desktop DS-2ZCN3007_720P_25fps_2M [10.6.30.120@ 7156] .smf can be used as one kind of format.
It should be noted that for simple description, therefore, it is stated as a systems for each embodiment of the method above-mentioned The combination of actions of column, but those skilled in the art should understand that, the application is not limited by the described action sequence, because For according to the application, certain some step be can be performed in other orders or simultaneously.Secondly, those skilled in the art also should Know, the embodiments described in the specification are all preferred embodiments, related movement and unit not necessarily this Shen It please be necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in some embodiment Part, reference can be made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, ROM, RAM etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.

Claims (8)

1. a kind of file access method, which is characterized in that the document method comprises the following steps,
S1: pass through the network address character recognition local file or network file of specific format;
S2: if network file, S3 is thened follow the steps;If local file, then S4 is executed;
S3: window application page file address is utilized, Windows function address is mapped to local function address, network File is then transferred to the corresponding service routine processing of network, executes step S5;
S4: local file is distributed to Windows API, executes step S5;
S5: terminate.
2. a kind of file access method as described in claim 1, which is characterized in that in step S3 and step S4, need elder generation Monitoring network environment, and network parameter is arranged according to network environment.
3. a kind of file access method as claimed in claim 2, which is characterized in that
The network environment includes network bandwidth, and the network parameter includes the file packet threshold size of file transmission.
4. a kind of file access method as claimed in claim 3, which is characterized in that the network bandwidth and the file packet threshold Value size is positively correlated.
5. a kind of file access method as claimed in claim 3, which is characterized in that the network bandwidth in certain phase with File packet threshold size is positively correlated, and after it is more than certain stage, file packet threshold size no longer changes.
6. a kind of file access method as claimed in claim 2, which is characterized in that if the net that the network environment is embodied Network adaptability is bad, and by data buffer storage, rewriting data improves success rate.
7. a kind of file access method as claimed in claim 2, which is characterized in that in data transmission procedure, also comprising number It monitors according to transmission fault, if transmission fault occurs, is carried out using file reorientation fault-tolerant.
8. a kind of file access method as described in claim 1, which is characterized in that the specific file format is, < ServerPath>[Ipaddress@port].<FilenameExtension>。
CN201910060451.7A 2019-01-22 2019-01-22 A kind of file access method Pending CN109522274A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910060451.7A CN109522274A (en) 2019-01-22 2019-01-22 A kind of file access method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910060451.7A CN109522274A (en) 2019-01-22 2019-01-22 A kind of file access method

Publications (1)

Publication Number Publication Date
CN109522274A true CN109522274A (en) 2019-03-26

Family

ID=65799370

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910060451.7A Pending CN109522274A (en) 2019-01-22 2019-01-22 A kind of file access method

Country Status (1)

Country Link
CN (1) CN109522274A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102194079A (en) * 2011-03-18 2011-09-21 北京思创银联科技股份有限公司 File access filtering method
CN108062374A (en) * 2017-12-12 2018-05-22 四川金英科技有限责任公司 A kind of network file access method and terminal
CN108540532A (en) * 2018-03-13 2018-09-14 成都蓉兴伟业科技有限公司 A kind of network file access method and terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102194079A (en) * 2011-03-18 2011-09-21 北京思创银联科技股份有限公司 File access filtering method
CN108062374A (en) * 2017-12-12 2018-05-22 四川金英科技有限责任公司 A kind of network file access method and terminal
CN108540532A (en) * 2018-03-13 2018-09-14 成都蓉兴伟业科技有限公司 A kind of network file access method and terminal

Similar Documents

Publication Publication Date Title
WO2021036228A1 (en) File upload method and apparatus, terminal, server, system, and storage medium
US11233851B2 (en) System, method, and computer program for enabling a user to access and edit via a virtual drive objects synchronized to a plurality of synchronization clients
CN103946845B (en) Client application file access
US20080077936A1 (en) Method and apparatus for automatically launching an application from a browser
US9218428B2 (en) Techniques for generating different sessions for multiple tabs of a single browser window
US9426204B2 (en) Network connection system for sharing data among independent networks
CN101808123B (en) Method and device for accessing storage resources in storage system
KR20100080786A (en) Method and system for handling failover in a distributed environment that uses session affinity
CN103530160A (en) Page loading method and device
CN104077310A (en) Method, equipment and system for loading resource file
CN104378435A (en) Method for transmitting file between browser of computing device and mobile terminal
CN110908837B (en) Application program exception handling method and device, electronic equipment and storage medium
CN109885223A (en) A kind of method and its equipment for realizing mobile terminal desktop information suspension procedure function
US20150135141A1 (en) Method and apparatus for creating a control interface of a peripheral device
CN110633046A (en) Storage method and device of distributed system, storage equipment and storage medium
US11327998B2 (en) Replication between heterogeneous storage systems
CN104516687A (en) Windows remote mapping method for Linux block device
US20190058756A1 (en) Method, Terminal, and System for Sending Office Document
CN106599323A (en) Method and apparatus for realizing distributed pipeline in distributed file system
CN106775690B (en) Recording method and device based on gdi/gdi + window coverage
CN109522274A (en) A kind of file access method
CN105099784B (en) Label setting method, apparatus and system
CN109635829B (en) Picture classification method, mobile terminal and computer storage medium
US10579265B2 (en) Cloud-synchronized local storage management
CN104156372A (en) Method, devices and system for opening page

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190326