CN106339438B - Internal storage display method in file manager - Google Patents

Internal storage display method in file manager Download PDF

Info

Publication number
CN106339438B
CN106339438B CN201610698555.7A CN201610698555A CN106339438B CN 106339438 B CN106339438 B CN 106339438B CN 201610698555 A CN201610698555 A CN 201610698555A CN 106339438 B CN106339438 B CN 106339438B
Authority
CN
China
Prior art keywords
folder
file
files
folders
matched
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.)
Active
Application number
CN201610698555.7A
Other languages
Chinese (zh)
Other versions
CN106339438A (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.)
Shenzhen Topwise Communication Co ltd
Original Assignee
Shenzhen Topwise Communication 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 Shenzhen Topwise Communication Co ltd filed Critical Shenzhen Topwise Communication Co ltd
Priority to CN201610698555.7A priority Critical patent/CN106339438B/en
Publication of CN106339438A publication Critical patent/CN106339438A/en
Application granted granted Critical
Publication of CN106339438B publication Critical patent/CN106339438B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/168Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs

Abstract

The invention discloses an internal storage display method in a file manager, which comprises the following implementation steps: confirming a folder name to be displayed in a file manager; creating an array to judge whether the folder name is corresponding to the folder name to be displayed; entering the internal storage of a file manager to acquire all file information of the root directory; judging whether the file or folder information in the root directory is matched with a certain folder in the array; if the files or the folders are matched, adding the files or the folders into displayed folders, and displaying the files or the folders; if the data information is not matched with the data information, the display operation is not carried out, the data information is hidden as a non-default file or folder, and the corresponding data information is counted; creating a virtual folder according to the statistical information, and displaying the internal file quantity, the creation time and the modification time obtained through statistics; clicking the virtual folder, and displaying the files and folders which are hidden as non-default before.

Description

Internal storage display method in file manager
Technical Field
The invention relates to the technical field of intelligent terminal memory display, in particular to an internal storage display method in a file manager.
Background
Nowadays, a mobile phone is not only a communication device, but under the trend of an intelligent system, the mobile phone becomes an intelligent mobile terminal of multimedia, and people like to play a microblog on the mobile phone and watch a webpage; people like listening to songs, taking pictures and playing games; some people use a mobile phone to schedule and work, and the like. This results in a very large system with many files and folders, and it is very difficult for us to find some files or folders in the file manager that need but do not know the name. The most used files at ordinary times include Bluetooth transmission files, picture files, downloaded files, video files and music files, and other system files and application installation files are basically not used and are not used for settlement. Based on this need, we have changed the display of the internal storage device root directory.
Disclosure of Invention
In view of the above-mentioned shortcomings in the art, the present invention provides a method for displaying internal storage in a file manager by changing the display of an internal storage root directory.
In order to achieve the above object, the present invention provides an internal storage display method in a file manager, comprising the following steps:
confirming a folder name to be displayed in a file manager;
creating an array system DefaultPath to judge whether the folder name is corresponding to the folder name to be displayed;
entering the internal storage of a file manager to acquire all file information of the root directory;
judging whether the file or folder information in the root directory is matched with a certain folder in the system DefaultPath array;
if the files or the folders are matched, adding the files or the folders into displayed folders, and displaying the files or the folders;
if the data information is not matched with the data information, the display operation is not carried out, the data information is hidden as a non-default file or folder, and the corresponding data information is counted;
creating a virtual folder according to the statistical information, and displaying the internal file quantity, the creation time and the modification time obtained through statistics;
clicking the virtual folder, and displaying the files and folders which are hidden as non-default before.
The real file of the system is stored in a root directory of the file manager in a KbxLocalFile type mode, and when whether the real file is matched with a certain folder in a systemDefaultPath array is confirmed, whether the following files or information of the folders are matched is judged:
private java.lang.string mFilePath; // file path;
private com.kanbox.filemgr.kbxlcacalfile.filetype mFileType; // file type;
private long mFileSize; // file size;
private long mLastModifyTime; // file last modified time;
private long mCreateTime; // time of creation of file;
private java.lang.string mappnname; // file name;
private java.lang.string mshownname; // file display name;
private int mSubfileCount; // how many files inside the folder;
private coolean m IsFolder; // is a folder.
The method comprises the steps of judging whether the file name of an incoming file list is matched with one folder in a systemDefaultPath array or not, if so, adding file information into the file list of the folders in the systemDefaultPath array, if not, recording the number of the lists of the systemDefaultPath, the size of a file, the last modification time of the file and the creation time of the file, and when the last folder in the incoming file list is transmitted, counting the number of the files to create a virtual folder, adding the data into the incoming file list, and displaying the data in the incoming file list, wherein only the folder corresponding to the file name of the incoming file list is arranged below a root folder.
When the virtual folder is clicked, setting the systemFolder to false, simultaneously entering a root file path, obtaining a root file data list, and distinguishing whether the content of the system folder or the content of the six folders is displayed by judging whether the systemFolder is false; when the systemFolder is false, judging whether the file name of the file list of the virtual folder is the same as one of systemDefaultPath, if so, not adding the file information into the file list of the virtual folder, and if not, adding the file information into the file list of the virtual folder for displaying;
the systemFolder is defined as a flag bit, and is true if the incoming is a root file and false if the incoming is a system folder.
Wherein, the folder names confirmed to be displayed in the file manager include a bluetooth folder, a photo folder, a download folder, a video folder, a music folder, and a system folder.
The specific way of creating the array system DefaultPath is as follows:
private static final String[]systemDefaultPath = {
"bluetooth","DCIM",
"Download","Movies",
"Music","System"}。
system defaultpath is the default folder path for the system;
the systemFolder is a flag bit of a system folder;
KbxLocalFile is a mapping of the virtual local file.
The invention has the beneficial effects that:
compared with the prior art, the internal storage display method in the file manager has the advantages that the effect of the file manager is only the display effect is changed, and the path of the file is not effectively modified, so that only the display effect is changed when the requirement is selected to be realized, and the path of the file is not directly modified. The internal storage only displays the folder names to be displayed corresponding to the array system DefaultPath, so that all files can be displayed on one page, and the file display method is clear at a glance and can meet the requirement of a user for quickly searching the files. The display is only convenient for the user and does not change any file path. When the internal storage is connected to other devices, all folders are normally displayed.
Drawings
FIG. 1 is a flow chart illustrating an internal storage display method in a document manager according to the present invention.
Detailed Description
In order to more clearly describe the present invention, the present invention will be further described with reference to the accompanying drawings.
Since the effect of the file manager is only to change the display effect and no effective path for modifying the file is performed, the effect of the display can only be changed when the requirement is selected to be achieved, and the path of the file cannot be directly modified. The display files of the file manager can be known by observing the codes to obtain corresponding lists of files to be displayed and folders by screening the information of the converted files, so that the files to be displayed and the folders are required to be displayed.
Referring to fig. 1, the internal storage display method in a file manager of the present invention includes the following implementation steps:
confirming a folder name to be displayed in a file manager;
creating an array system DefaultPath to judge whether the folder name is corresponding to the folder name to be displayed;
entering the internal storage of a file manager to acquire all file information of the root directory;
judging whether the file or folder information in the root directory is matched with a certain folder in the system DefaultPath array;
if the files or the folders are matched, adding the files or the folders into displayed folders, and displaying the files or the folders;
if the data information is not matched with the data information, the display operation is not carried out, the data information is hidden as a non-default file or folder, and the corresponding data information is counted;
creating a virtual folder according to the statistical information, and displaying the internal file quantity, the creation time and the modification time obtained through statistics;
clicking the virtual folder, and displaying the files and folders which are hidden as non-default before.
The data of the folder list of the system is displayed by a function of acquiring each row of data through a file category list adapter, but the total data of the file category list adapter is the total data of the current path acquired by the function of acquiring the file category list adapter of the file management core, but not all the total data are displayed, and the file list and the file information thereof are displayed by selecting and converting file information; and adding the file into a display file list.
system defaultpath is the default folder path for the system;
the systemFolder is a flag bit of a system folder;
KbxLocalFile is a mapping of the virtual local file.
Compared with the prior art, the internal storage display method in the file manager has the advantages that the effect of the file manager is only the display effect is changed, and the path of the file is not effectively modified, so that only the display effect is changed when the requirement is selected to be realized, and the path of the file is not directly modified. The internal storage only displays the folder names to be displayed corresponding to the array system DefaultPath, so that all files can be displayed on one page, and the file display method is clear at a glance and can meet the requirement of a user for quickly searching the files. The display is only convenient for the user and does not change any file path. When the internal storage is connected to other devices, all folders are normally displayed.
In this embodiment, the real file of the system is stored in the root directory of the file manager in a form of a KbxLocalFile class, and when it is determined whether the real file matches with a certain folder in the system defaultpath array, it is determined whether the following files or folders have matching information:
private java.lang.string mFilePath; // file path;
private com.kanbox.filemgr.kbxlcacalfile.filetype mFileType; // file type;
private long mFileSize; // file size;
private long mLastModifyTime; // file last modified time;
private long mCreateTime; // time of creation of file;
private java.lang.string mappnname; // file name;
private java.lang.string mshownname; // file display name;
private int mSubfileCount; // how many files inside the folder;
private coolean m IsFolder; // is a folder.
In this embodiment, by determining whether the file name of the incoming file list matches one folder in the embodiment in the systemDefaultPath array, if so, the file information is added to the file list of the folder in the systemDefaultPath array, if not, the list number of the systemDefaultPath, the file size, the file last modification time and the file creation time which are not so recorded, and when the last file in the incoming file list is transmitted, the number which is not so recorded is counted to create a virtual folder, and the data is added and displayed in the incoming file list, and only the corresponding desired folder is located under the root folder.
In this embodiment, when a virtual folder is clicked, the systemFolder is set to false, a root file path is entered at the same time, a root file data list is obtained, and whether the content of the system folder is displayed or the contents of the six folders are distinguished by judging whether the systemFolder is false; when the system folder is false, judging whether the file name of the file list of the virtual folder is the same as that of the system DefaultPath in the embodiment, if so, not adding the file information into the file list of the virtual folder, and if not, adding the file information into the file list of the virtual folder for displaying;
the systemFolder is defined as a flag bit, and is true if the incoming is a root file and false if the incoming is a system folder.
In the present embodiment, it is confirmed in the file manager that the folder names to be displayed include a bluetooth folder, a photo folder, a download folder, a video folder, a music folder, and a system folder.
In this embodiment, the specific way to create the array system defaultpath is as follows:
private static final String[]systemDefaultPath = {
"bluetooth","DCIM",
"Download","Movies",
"Music","System"}。
the above disclosure is only for a few specific embodiments of the present invention, but the present invention is not limited thereto, and any variations that can be made by those skilled in the art are intended to fall within the scope of the present invention.

Claims (2)

1. An internal storage display method in a file manager is characterized by comprising the following implementation steps:
confirming a folder name to be displayed in a file manager;
creating an array system DefaultPath to judge whether the folder name is corresponding to the folder name to be displayed;
entering the internal storage of a file manager to acquire all file information of the root directory;
judging whether the file or folder information in the root directory is matched with a certain folder in the system DefaultPath array;
if the files or the folders are matched, adding the matched files or folders into displayed folders, and displaying the files or the folders;
if the files are not matched, the display operation is not carried out, the files or folders are hidden as non-default files or folders, and unmatched file or folder information is counted;
creating a virtual folder according to the unmatched files or folder information obtained by statistics, and displaying the internal file quantity, the creation time and the modification time of the matched files or folders obtained by statistics;
clicking the virtual folder, and displaying the files and folders which are hidden as non-default before display;
judging whether the file name of an incoming file list is matched with one folder in a systemDefaultPath array, if so, adding matched file information into the file list of the folders in the systemDefaultPath array, if not, recording the number, the size, the last modification time and the creation time of unmatched files, counting the number which is not fixed when the last file list is transmitted, creating a virtual folder, adding all the recorded unmatched files into the file list displayed in the virtual folder, and only having a corresponding wanted folder below a root folder;
when a virtual folder is clicked, setting the systemFolder to false, simultaneously entering a root file path, obtaining a root file data list, and distinguishing whether the content of a system root folder is displayed or the content of six preset folders by judging whether the systemFolder is false; when the systemFolder is false, judging whether the file name of the file list of the virtual folder is matched with one of the systemDefaultPath, if so, not adding the file information into the file list of the virtual folder, and if not, adding the unmatched file information into the file list of the virtual folder for display;
the system folder is defined as a flag bit, if the entering is a root file, the system folder is true, and if the entering is a system folder, the system folder is false;
it is confirmed in the file manager that folder names to be displayed include a bluetooth folder, a photo folder, a download folder, a video folder, a music folder, and a system folder.
2. The method as claimed in claim 1, wherein the real files of the system are stored in the root directory of the document manager in a KbxLocalFile type, and when determining whether they match with a folder in the system DefaultPath array, the following files or folders are determined to be matched: file path, file type, file size, last modified time of file, creation time of file, file name, file display name, how many files are inside the folder, and whether it is a folder.
CN201610698555.7A 2016-08-22 2016-08-22 Internal storage display method in file manager Active CN106339438B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610698555.7A CN106339438B (en) 2016-08-22 2016-08-22 Internal storage display method in file manager

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610698555.7A CN106339438B (en) 2016-08-22 2016-08-22 Internal storage display method in file manager

Publications (2)

Publication Number Publication Date
CN106339438A CN106339438A (en) 2017-01-18
CN106339438B true CN106339438B (en) 2020-04-07

Family

ID=57824335

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610698555.7A Active CN106339438B (en) 2016-08-22 2016-08-22 Internal storage display method in file manager

Country Status (1)

Country Link
CN (1) CN106339438B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110069449B (en) * 2019-03-20 2023-09-26 平安科技(深圳)有限公司 File processing method, device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1656478A (en) * 2003-03-27 2005-08-17 微软公司 File system for displaying items of different types and from different physical locations
CN1759389A (en) * 2003-03-27 2006-04-12 微软公司 System and method utilizing virtual folders
CN102479307A (en) * 2010-11-23 2012-05-30 腾讯科技(深圳)有限公司 Mobile device and video file hiding method of mobile device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014037759A1 (en) * 2012-09-05 2014-03-13 Winmagine Computer installation for the management of a set of files, method, program and computer medium associated therewith

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1656478A (en) * 2003-03-27 2005-08-17 微软公司 File system for displaying items of different types and from different physical locations
CN1759389A (en) * 2003-03-27 2006-04-12 微软公司 System and method utilizing virtual folders
CN102479307A (en) * 2010-11-23 2012-05-30 腾讯科技(深圳)有限公司 Mobile device and video file hiding method of mobile device

Also Published As

Publication number Publication date
CN106339438A (en) 2017-01-18

Similar Documents

Publication Publication Date Title
AU2011271263B2 (en) Customizing a search experience using images
CN103530114B (en) Picture managing method and device
CN103888837B (en) A kind of video information method for pushing and device
US8479108B2 (en) Methods and systems for shareable virtual devices
US8490135B2 (en) Virtual media channels
US8949238B2 (en) Information processing device, method, and computer program product
US20180075067A1 (en) Method of Facilitating Browsing and Management of Multimedia Files with Data Structure thereof
JP2008504625A (en) Search and identify items based on metadata
CN106095595B (en) Information sharing method and terminal between a kind of application program
KR20090080693A (en) Terminal and method for displaying contents thereof
KR101702563B1 (en) Method and apparatus for accessing device based on intuitive selection
CN106534478A (en) Map information display system based on asynchronous loading
CN102811167B (en) Method and apparatus for the network based on hierarchical name structure
CN104581224B (en) Switch the method, apparatus and terminal of broadcasting content
CN106815284A (en) The recommendation method and recommendation apparatus of news video
US9182888B2 (en) System, device and method for providing presence information using audio data
CN106339438B (en) Internal storage display method in file manager
CN106453822A (en) Map information display method based on asynchronous loading
CN106055671A (en) Multimedia data processing method and equipment thereof
KR20080040063A (en) Classificating and searching system of map structed video contents and method thereof
KR20160026951A (en) System, apparatus, method and computer readable recording medium for providing a combined browsing about web cloud storage and network attached storage
CN105512219A (en) Method and device for displaying date corresponding to yellow calendar and electronic equipment
CN104699765B (en) A kind of date storage method and mobile terminal
EP2137878B1 (en) Device for managing the dynamic distribution of multimedia content using content identifiers and distribution identifiers
US20100120531A1 (en) Audio content management for video game systems

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 518000 Room 501, east block, Shengtang business building, Tairan 9th Road, Tian'an community, Shatou street, Futian District, Shenzhen City, Guangdong Province

Patentee after: Shenzhen Dingzhi Communication Co.,Ltd.

Address before: 518000 Room 601, 5th floor, a8 music building, 1002 Keyuan Road, Yuehai street, Nanshan District, Shenzhen, Guangdong

Patentee before: SHENZHEN TOPWISE COMMUNICATION Co.,Ltd.

CP03 Change of name, title or address

Address after: 518000 Room 501, east block, Shengtang business building, Tairan 9th Road, Tian'an community, Shatou street, Futian District, Shenzhen City, Guangdong Province

Patentee after: SHENZHEN TOPWISE COMMUNICATION Co.,Ltd.

Country or region after: China

Address before: 518000 Room 501, east block, Shengtang business building, Tairan 9th Road, Tian'an community, Shatou street, Futian District, Shenzhen City, Guangdong Province

Patentee before: Shenzhen Dingzhi Communication Co.,Ltd.

Country or region before: China