CN103679043A - 隐藏文件或目录的方法 - Google Patents

隐藏文件或目录的方法 Download PDF

Info

Publication number
CN103679043A
CN103679043A CN201210359756.6A CN201210359756A CN103679043A CN 103679043 A CN103679043 A CN 103679043A CN 201210359756 A CN201210359756 A CN 201210359756A CN 103679043 A CN103679043 A CN 103679043A
Authority
CN
China
Prior art keywords
catalogue
public
user
file
root
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
CN201210359756.6A
Other languages
English (en)
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.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201210359756.6A priority Critical patent/CN103679043A/zh
Publication of CN103679043A publication Critical patent/CN103679043A/zh
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers

Abstract

本发明提供了一种隐藏文件或目录的方法,包括:假设文件系统的根目录为root,首先在根目录root下创建一个新目录为public;把对用户公开的文件或目录都放置和保存在public目标下;把对用户不公开的文件或目录放置和保存在与public处在同一级或比public高一级的目录下;设置用户每次打开root的路径都为public目录。本发明对用户仅公开public目录里的内容,而public目录以外的文件和目录被隐藏起来。与现有技术相比,本发明可以保护需要被隐藏的文件和目录,为用户以及其他技术人员提供方便,并且还能避免失误操作而引起设备不稳定或者系统被破坏的严重后果。

Description

隐藏文件或目录的方法
【技术领域】
本发明涉及一种隐藏文件或文件夹的方法。
【背景技术】
目前,一些设备的嵌入式操作系统的文件系统没有设置文件或目录(目录即为文件夹)隐藏功能,文件系统的内容全部公开给用户。具体的是,在文件系统的根目录下的内容对用户全部公开,用户可以查看到一些无需关心具体内容的文件及目录,容易引起用户困惑,用户还经常会询问这些文件的用途,增加销售和技术服务以及研发人员的工作量。更甚的是,如果用户误操作了一些重要的文件,可能引起设备不稳定或者系统被破坏的严重后果。
【发明内容】
本发明需解决的技术问题是克服上述的不足,提供一种隐藏文件或目录的方法。
为解决上述的技术问题,本发明设计了一种隐藏文件或目录的方法,包括以下几个步骤:
Step 1:假设文件系统的根目录为root,首先在根目录root下创建一个新目录为public;
Step 2:把对用户公开的文件或目录都放置和保存在public目标下;
Step 3:把对用户不公开的文件或目录放置和保存在与public处在同一级或比public高一级的目录下;
Step 4:设置用户每次打开root的路径都为public目录。
作为发明进一步改进,仅开放public接口给用户与文件系统交互。
本发明对用户仅公开public目录里的内容,而public目录以外的文件和目录被隐藏起来。与现有技术相比,本发明可以保护需要被隐藏的文件和目录,为用户以及其他技术人员提供方便,并且还能避免失误操作而引起设备不稳定或者系统被破坏的严重后果。
【附图说明】
图1是本发明隐藏文件或目录的方法流程示意图;
图2是本发明文件系统的结构示意图;
图3是本发明文件系统的另一结构示意图。
【具体实施方式】
下面结合附图和实施方式对本发明作进一步说明。
本发明提供了一种隐藏文件或目录的方法,可以将文件系统中对用户不需要公开的文件或目录隐藏起来,从而保护这类文件或目录以及为用户和其他相关人员提供方便。
如图1所示,本发明的操作方式是:在文件系统的根目录中创建一个需对用户公开的目录,即创建一个需对用户公开的文件夹。具体操作时,假设文件系统的根目录为root,在目录root下创建一个新目录为public。本发明root和public仅是目录(即文件夹)的代称,代称也可以为其他名字。
然后,把对用户公开的文件或目录都放置和保存在public目标下;把对用户不公开的文件或目录放置和保存在与public处在同一级或比public高一级的目录下。如图2所示,在根目录root下,需公开的文件或目录等内容(public_file)放在目录public中;而需隐藏的目录和文件(private和private_file)放置在与public处于同一级。如图3所示,需隐藏的目录和文件(private1.1和private_file)放置在比public高一级处,需隐藏的目录private2.1与目录public放置在同一级,而public放置在root中的目录private1.2中,需对用户公开的内容(private_file)放置和保存在目录public。
无论,public放置和保存在哪个位置,设置用户每次打开root的路径都为public目录,并且仅开放public接口给用户与文件系统交互。即用户每次打开文件系统根目录root时,都直接进入到public目录,只有public里的内容供用户查看或操作。而与public同一级或比public高级的目录和文件则被隐藏起来了。
使用本发明方法,用户仅对public里面的内容进行操作,也就是说public目录以外的文件或目录对用户来说是透明的,间接地把这些文件或目录隐藏起来,起到一个保护作用,还能避免失误操作而引起设备不稳定或者系统被破坏的严重后果。
以上所述的仅是本发明的实施方式,在此应当指出,对于本领域的普通技术人员来说,在不脱离本发明创造构思的前提下,还可以做出改进,但这些均属于本发明的保护范围。

Claims (2)

1.一种隐藏文件或目录的方法,其特征在于,包括以下几个步骤:
Step 1:假设文件系统的根目录为root,首先在根目录root下创建一个新目录为public;
Step 2:把对用户公开的文件或目录都放置和保存在public目标下;
Step 3:把对用户不公开的文件或目录放置和保存在与public处在同一级或比public高一级的目录下;
Step 4:设置用户每次打开root的路径都为public目录。
2.根据权利要求1所述隐藏文件或目录的方法,其特征在于,仅开放public接口给用户与文件系统交互。
CN201210359756.6A 2012-09-24 2012-09-24 隐藏文件或目录的方法 Pending CN103679043A (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210359756.6A CN103679043A (zh) 2012-09-24 2012-09-24 隐藏文件或目录的方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210359756.6A CN103679043A (zh) 2012-09-24 2012-09-24 隐藏文件或目录的方法

Publications (1)

Publication Number Publication Date
CN103679043A true CN103679043A (zh) 2014-03-26

Family

ID=50316553

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210359756.6A Pending CN103679043A (zh) 2012-09-24 2012-09-24 隐藏文件或目录的方法

Country Status (1)

Country Link
CN (1) CN103679043A (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109740374A (zh) * 2018-12-20 2019-05-10 努比亚技术有限公司 一种隐藏方法、移动终端及计算机可读存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1527208A (zh) * 2003-09-25 2004-09-08 联想(北京)有限公司 基于身份认证的计算机安全及加密的实现方法和装置
US20100205373A1 (en) * 2007-09-06 2010-08-12 Shuo He Smart sd card and method of accessing the same
CN102479307A (zh) * 2010-11-23 2012-05-30 腾讯科技(深圳)有限公司 一种移动设备上的视频文件隐藏方法以及一种移动设备

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1527208A (zh) * 2003-09-25 2004-09-08 联想(北京)有限公司 基于身份认证的计算机安全及加密的实现方法和装置
US20100205373A1 (en) * 2007-09-06 2010-08-12 Shuo He Smart sd card and method of accessing the same
CN102479307A (zh) * 2010-11-23 2012-05-30 腾讯科技(深圳)有限公司 一种移动设备上的视频文件隐藏方法以及一种移动设备

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109740374A (zh) * 2018-12-20 2019-05-10 努比亚技术有限公司 一种隐藏方法、移动终端及计算机可读存储介质
CN109740374B (zh) * 2018-12-20 2023-05-19 努比亚技术有限公司 一种隐藏方法、移动终端及计算机可读存储介质

Similar Documents

Publication Publication Date Title
WO2006077443A3 (en) Computer protection against malware affection
WO2012016091A3 (en) Protecting documents using policies and encryption
WO2011087710A3 (en) Adaptable medical workflow system
WO2011163095A3 (en) Techniques for advertiser geotargeting using map coordinates
FR2967993B1 (fr) Composition a base d'oxyde de zirconium et d'au moins un oxyde d'une terre rare autre que le cerium, a porosite specifique, ses procedes de preparation et son utilisation en catalyse
WO2008124793A3 (en) Graphical user interface for electronic file sharing
CN103679043A (zh) 隐藏文件或目录的方法
Kaya et al. (-)-Capnoidine and (+)-bulbocapnine from an Amaryllidaceae species, Galanthus nivalis subsp. cilicicus
Agaba et al. Managing the Global Economic Meltdown in a Consolidated Banking Sector of Nigeria: Rhetorics or Realities
Gross et al. Issues related to the combination of multiple CMFs
CN103500428A (zh) 一种网络遗嘱系统
Ministerial Outside Important Oak Woodland Habitat (IOWH) and Important Biological Corridors (IBC)
CN102331263A (zh) 一种用于导航的电子设备
Wilson Asaistaat Director
Mastrogiannidou et al. Transit-assisted emergency evacuation of high-density clusters in urban areas
Jigyasu Disaster risk management of cultural heritage sites in Albania: seismological-geohazard risk analysis and disaster risk reduction guidelines for Apollonia archaeological park, historic centres and Gjirokastra and Butrint
Bakri et al. ADOPTION OF SYSTEMATIC FACILITIES MANAGEMENT APPROACH TOWARDS SUSTAINABLE PERFORMANCE OF MOSQUE INSTITUTION
BERIATOS Nature protection policy and protected areas: the case of national parks
Abruzzese Emblematic remarks on conservation and restoration of cultural heritage in Italy-the economy and the globalization effect
Nakano et al. Collection and analysis of cases of emergency response for natural disaster to develop business continuity plan in port and harbor
Paton Needs of overseas staff ignored
Lara GMG issues brief Labour migration final
Bara CRN REPORT Factsheet Social Vulnerability to Disasters CSS
SINGH Onewa footbridge
Bertino et al. Proceedings of the 4th ACM SIGSPATIAL international workshop on security and privacy in GIS and LBS-SPRINGL 2011: november 1-4, 2011, Chicago, IL, USA

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140326