CN106682189B - File name display method and device - Google Patents

File name display method and device Download PDF

Info

Publication number
CN106682189B
CN106682189B CN201611248152.9A CN201611248152A CN106682189B CN 106682189 B CN106682189 B CN 106682189B CN 201611248152 A CN201611248152 A CN 201611248152A CN 106682189 B CN106682189 B CN 106682189B
Authority
CN
China
Prior art keywords
file
files
length
preset
file names
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
CN201611248152.9A
Other languages
Chinese (zh)
Other versions
CN106682189A (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.)
Guangzhou Huaduo Network Technology Co Ltd
Original Assignee
Guangzhou Huaduo Network 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 Guangzhou Huaduo Network Technology Co Ltd filed Critical Guangzhou Huaduo Network Technology Co Ltd
Priority to CN201611248152.9A priority Critical patent/CN106682189B/en
Publication of CN106682189A publication Critical patent/CN106682189A/en
Application granted granted Critical
Publication of CN106682189B publication Critical patent/CN106682189B/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
    • 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
    • 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/164File meta data generation
    • G06F16/166File name conversion

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a file name display method and device, and belongs to the technical field of computers. The method comprises the following steps: acquiring file names of m files in a folder, wherein m is an integer larger than 1; dividing m files into n groups according to each file name; when the grouping comprises at least two files, the similarity of the file names of the at least two files is higher than a preset threshold value; when the file names of the files in the group comprising at least two files are displayed, determining similar fields in the file names of the files in the group, presetting the determined fields, and displaying the processed file names; the preset process includes hiding the field or replacing the field with preset content having a length smaller than that of the field to be replaced. The problem that the displayed information is effective and some effective information is not displayed in the prior art is solved; more effective information in the file name can be displayed, and then the user experience of the user is improved.

Description

File name display method and device
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a file name display method and device.
Background
In the prior art, after a certain folder is opened, the terminal can display the file names of the files in the folder.
However, when the file name of a certain file is too long, the terminal cannot display the complete file name of the file, that is, the information in the file name of the file displayed by the terminal is limited, and some valid information may not be displayed.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide a method and an apparatus for displaying a file name. The technical scheme is as follows:
according to a first aspect of embodiments of the present invention, there is provided a file name display method, including:
acquiring file names of m files in a folder, wherein m is an integer larger than 1;
dividing the m files into n groups according to each file name; when the grouping comprises at least two files, the similarity of the file names of the at least two files is higher than a preset threshold value;
when the file names of the files in a group comprising at least two files are displayed, determining similar fields in the file names of the files in the group, presetting the determined fields, and displaying the processed file names; the preset processing includes hiding the field, or replacing the field with preset content, where the length of the preset content is smaller than the length of the replaced field.
Optionally, the dividing the files into n groups according to the file names includes:
for each file in the m files, detecting whether an existing group contains a target group, wherein the target group is a group of which the similarity between the file name and the file name of the file is higher than the preset threshold value;
if the target group is contained, adding the file to the target group;
and if the target group is not included, newly creating a group including the file.
Optionally, the method further comprises:
detecting whether the file names of the m files comprise file names with lengths exceeding a preset length, wherein the preset length is the maximum length of the file names capable of being displayed completely;
and if the file names with the length exceeding the preset length are included, executing the step of acquiring the file names of the m files in the folder.
Optionally, the method further comprises:
detecting whether the length of the file name of the file exceeds a preset length, wherein the preset length is the maximum length of the file name when the file name can be completely displayed;
and if the length of the file name of the file exceeds the preset length, executing the operation of displaying the processed file name.
Optionally, if the length of the file name of the file does not exceed the preset length, displaying the complete file name of the file.
In a second aspect, there is provided a file name display apparatus, the apparatus comprising:
the acquisition module is used for acquiring file names of m files in the folder, wherein m is an integer larger than 1;
the dividing module is used for dividing the m files into n groups according to each file name; when the grouping comprises at least two files, the similarity of the file names of the at least two files is higher than a preset threshold value;
the display module is used for determining similar fields in the file names of the files in the group when the file names of the files in the group comprising at least two files are displayed, presetting the determined fields and displaying the processed file names; the preset processing includes hiding the field, or replacing the field with preset content, where the length of the preset content is smaller than the length of the replaced field.
Optionally, the dividing module is further configured to:
for each file in the m files, detecting whether an existing group contains a target group, wherein the target group is a group of which the similarity between the file name and the file name of the file is higher than the preset threshold value;
if the target group is contained, adding the file to the target group;
and if the target group is not included, newly creating a group including the file.
Optionally, the apparatus further comprises:
the first detection module is used for detecting whether the file names of the m files comprise file names with the length exceeding a preset length, and the preset length is the maximum length when the file names can be completely displayed;
the obtaining module is further configured to execute the step of obtaining the filenames of the m files in the folder when the detection result of the first detecting module includes the filenames whose length exceeds the preset length.
Optionally, the apparatus further comprises:
the second detection module is used for detecting whether the length of the file name of the file exceeds a preset length, wherein the preset length is the maximum length of the file name when the file name can be completely displayed;
the display module is further configured to execute the operation of displaying the processed file name when the detection result of the second detection module indicates that the length of the file name of the file exceeds the preset length.
Optionally, the display module is further configured to display the complete filename of the file when the detection result of the second detection module indicates that the length of the filename of the file does not exceed the preset length.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
dividing m files under the folder into n groups according to each file name, wherein when the groups comprise at least two files, the similarity of the file names of the at least two files is higher than a preset threshold value; and when the file names of the files in the group comprising at least two files are displayed, determining similar fields in the file names of the files in the group, performing preset processing on the determined fields, and displaying the processed file names. The preset processing comprises hiding the determined field, or replacing the determined field with preset content, wherein the length of the preset content is smaller than that of the replaced field; because repeated parts in the file names of the files are usually invalid information and do not help users greatly, more effective information can be displayed when the file names are displayed by presetting the file names, and the problems that the displayed information is effective and some effective information is not displayed in the prior art are solved; more effective information in the file name can be displayed, and then the user experience of the user is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flowchart of a file name display method provided by an embodiment of the present invention;
FIG. 2A is a flowchart of a file name display method according to an embodiment of the present invention;
FIG. 2B is a flow diagram for grouping files, as provided by one embodiment of the present invention;
FIG. 3 is a schematic diagram of a filename display device provided by one embodiment of the present invention;
FIG. 4 is a schematic diagram of a filename display device provided by one embodiment of the present invention;
fig. 5 is a schematic diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Referring to fig. 1, a flowchart of a method for displaying a file name according to an embodiment of the present invention is shown, and as shown in fig. 1, the method for displaying a file name may include:
step 101, obtaining file names of m files in a folder, wherein m is an integer larger than 1.
Step 102, dividing m files into n groups according to each file name; and when the grouping comprises at least two files, the similarity of the file names of the at least two files is higher than a preset threshold value.
Step 103, when the file names of the files in the group comprising at least two files are displayed, determining similar fields in the file names of the files in the group, performing preset processing on the determined fields, and displaying the processed file names.
The preset process includes hiding the field or replacing the field with preset content having a length smaller than that of the field to be replaced.
In summary, in the file name display method provided in this embodiment, m files in a folder are divided into n groups according to each file name, where when at least two files are included in a group, the similarity between the file names of the at least two files is higher than a preset threshold; and when the file names of the files in the group comprising at least two files are displayed, determining similar fields in the file names of the files in the group, performing preset processing on the determined fields, and displaying the processed file names. The preset processing comprises hiding the determined field, or replacing the determined field with preset content, wherein the length of the preset content is smaller than that of the replaced field; because repeated parts in the file names of the files are usually invalid information and do not help users greatly, more effective information can be displayed when the file names are displayed by presetting the file names, and the problems that the displayed information is effective and some effective information is not displayed in the prior art are solved; more effective information in the file name can be displayed, and then the user experience of the user is improved.
Referring to fig. 2A, a flowchart of a method for displaying a file name according to an embodiment of the present invention is shown, and as shown in fig. 2A, the method for displaying a file name may include:
step 201, detecting whether the file names of the m files include a file name with a length exceeding a preset length.
When the terminal opens the folder, the terminal may detect whether file names of m files in the files include a file name whose length exceeds a preset length.
The preset length is the maximum length when the file names can be completely displayed, for example, the preset length is 10 characters, and the terminal can detect whether the file names of m files include a file name with a length exceeding 10 characters. m is an integer greater than 1.
In addition, the folder in this embodiment may be a folder in a conventional sense, for example, the folder may be a folder for storing a tv show in a D-disc; the file directory may also be a directory of a download list when downloading a file, for example, the directory is not limited to this
Step 202, if the file names with the length exceeding the preset length are included, the file names of m files in the folder are obtained.
If the detection result is that the file name with the length exceeding the preset length is included, the file name of the file cannot be completely displayed, and at this time, the terminal can acquire the file names of the m files in the folder. Alternatively, the terminal may read the file names of the stored m files.
If the detection result is that the file name with the length exceeding the preset length is not included, the process is ended, and details are not described herein.
Step 203, for each file in the m files, detecting whether an existing group contains a target group, wherein the target group is a group of which the similarity between the file name and the file name of the file is higher than a preset threshold value.
Optionally, the terminal may calculate a similarity between the file name of each file and the file name of the file in each existing group, detect whether the calculated similarity is higher than a preset threshold, determine that the existing group includes the target group if the calculated similarity is higher than the preset threshold, and otherwise determine that the existing group does not include the target group.
In actual implementation, the terminal may sequentially traverse each file according to the existing sequence of the m files in the folder. Specifically, the terminal scans the ith file; detecting whether the existing grouping contains a grouping with the similarity of the file name of the ith file higher than a preset threshold value; if yes, adding the ith file to the detected group; and if not, creating a packet containing the ith file. Thereafter, i +1, and the step of scanning the ith file is executed again, and the detailed flow refers to fig. 2B. Wherein i is more than or equal to 1 and less than or equal to m, and the initial value of i is 1. Certainly, the terminal may also randomly select one of the files first without any order, and detect whether the existing group includes a group whose file name similarity with the file is higher than a preset threshold; if yes, adding the file to the detected group; and if not, creating a packet containing the file. Thereafter, the terminal may randomly select one file from the non-traversed files, and continue to detect until all the files are traversed, which is not described herein again.
When the terminal calculates the similarity between the file name of each file and the file names of the files in a certain group, the terminal can calculate the similarity between the file name of the file and the file name of any file in the group, and the calculated similarity is used as the similarity between the file name of the file and the file names of the files in the group; optionally, the terminal may also calculate similarity between the file name of the file and the file names of the files in the group, then calculate an average value of the similarity, and use the calculated average value as the similarity between the file name of the file and the file names of the files in the group, which is not limited in this embodiment.
In actual implementation, the terminal may calculate the similarity between the file and the file name of the file in the existing group by performing a character string matching method on the file name of the file and the file name of the file in the existing group, which is not limited in this embodiment.
In addition, the preset threshold may be a value preset by the terminal, or may be a value customized by the user, which is not limited. For example, the preset threshold may be 70% of the preset threshold of the terminal.
And step 204, if the target grouping is contained, adding the file to the target grouping.
If the detection result is that the target packet is included in the existing packets, the terminal may add the file to the target packet.
In step 205, if the target group is not included, a group including the file is newly created.
Alternatively, for the first file of the m files, since there is no packet, at this time, the terminal may create a packet containing the first file.
Step 206, when the file names of the files in the group comprising at least two files are displayed, determining similar fields in the file names of the files in the group, performing preset processing on the determined fields, and displaying the processed file names.
Wherein the preset process includes hiding the field or replacing the field with preset content. And, the length of the preset content is smaller than the length of the replaced field. Typically, the length of the predetermined content is smaller than the predetermined length, for example, smaller than 4 characters.
For example, if a group includes 3 files with file names of "xxxxxxxxxx first set", "xxxxxxxxxx second set", and "xxxxxxxxxx third set", respectively, then when the preset process includes a hidden field, the terminal may display the file names of the three files as "first set", "second set", and "third set", respectively; and when the preset process includes replacement with "…", the terminals may be displayed as "… first set", "… second set", and "… third set", respectively.
In actual implementation, the file names in different groups may be processed in the same or different manners, for example, a first group is processed by using a hidden field, and a second group is processed by using a replacement field; for another example, the first packet adopts a process of replacing the determined field with "…", and the second packet adopts a process of replacing the determined field with "abc", which is not limited in this embodiment.
In actual implementation, before displaying the file name of the processed file, the terminal may further detect whether the length of the file name of the file exceeds a preset length. The preset length is the maximum length of the file name when the file name can be completely displayed. That is, the terminal can detect whether the file name of the file can be completely displayed. And if the detection result of the terminal is that the length of the file name of the file exceeds the preset length, namely the file name cannot be completely displayed, displaying the operation of the processed file name. And if the length of the file name of the file does not exceed the preset length, namely the file name of the file can be completely displayed, in order to ensure that more information is displayed, the terminal can display the complete file name of the file.
In summary, in the file name display method provided in this embodiment, m files in a folder are divided into n groups according to each file name, where when at least two files are included in a group, the similarity between the file names of the at least two files is higher than a preset threshold; and when the file names of the files in the group comprising at least two files are displayed, determining similar fields in the file names of the files in the group, performing preset processing on the determined fields, and displaying the processed file names. The preset processing comprises hiding the determined field, or replacing the determined field with preset content, wherein the length of the preset content is smaller than that of the replaced field; because repeated parts in the file names of the files are usually invalid information and do not help users greatly, more effective information can be displayed when the file names are displayed by presetting the file names, and the problems that the displayed information is effective and some effective information is not displayed in the prior art are solved; more effective information in the file name can be displayed, and then the user experience of the user is improved.
Referring to fig. 3, which shows a schematic structural diagram of a file name display apparatus according to an embodiment of the present invention, as shown in fig. 3, the file name display apparatus may include: an acquisition module 310, a division module 320, and a display module 330.
An obtaining module 310, configured to obtain filenames of m files in a folder, where m is an integer greater than 1;
a dividing module 320, configured to divide the m files into n groups according to each file name; when the grouping comprises at least two files, the similarity of the file names of the at least two files is higher than a preset threshold value;
the display module 330 is configured to, when a filename of a file in a group including at least two files is displayed, determine a similar field in the filename of each file in the group, perform preset processing on the determined field, and display the processed filename; the preset processing includes hiding the field, or replacing the field with preset content, where the length of the preset content is smaller than the length of the replaced field.
In summary, the filename display device provided in this embodiment divides m files in a folder into n groups according to each filename, where when a group includes at least two files, a similarity between filenames of the at least two files is higher than a preset threshold; and when the file names of the files in the group comprising at least two files are displayed, determining similar fields in the file names of the files in the group, performing preset processing on the determined fields, and displaying the processed file names. The preset processing comprises hiding the determined field, or replacing the determined field with preset content, wherein the length of the preset content is smaller than that of the replaced field; because repeated parts in the file names of the files are usually invalid information and do not help users greatly, more effective information can be displayed when the file names are displayed by presetting the file names, and the problems that the displayed information is effective and some effective information is not displayed in the prior art are solved; more effective information in the file name can be displayed, and then the user experience of the user is improved.
Referring to fig. 4, a schematic structural diagram of a file name display apparatus according to an embodiment of the present invention is shown, and as shown in fig. 4, the file name display apparatus may include: an acquisition module 410, a division module 420, and a display module 430.
An obtaining module 410, configured to obtain filenames of m files in a folder, where m is an integer greater than 1;
a dividing module 420, configured to divide the m files into n groups according to each file name; when the grouping comprises at least two files, the similarity of the file names of the at least two files is higher than a preset threshold value;
the display module 430 is configured to, when a file name of a file in a group including at least two files is displayed, determine a similar field in the file name of each file in the group, perform preset processing on the determined field, and display the processed file name; the preset processing includes hiding the field, or replacing the field with preset content, where the length of the preset content is smaller than the length of the replaced field.
Optionally, the dividing module 420 is further configured to:
for each file in the m files, detecting whether an existing group contains a target group, wherein the target group is a group of which the similarity between the file name and the file name of the file is higher than the preset threshold value;
if the target group is contained, adding the file to the target group;
and if the target group is not included, newly creating a group including the file.
Optionally, the apparatus further comprises:
a first detecting module 440, configured to detect whether a filename whose length exceeds a preset length is included in the filenames of the m files, where the preset length is a maximum length of the filenames when the filenames can be completely displayed;
the obtaining module 410 is further configured to execute the step of obtaining the filenames of m files in the folder when the detection result of the first detecting module 440 is that the filenames include a length that exceeds the preset length.
Optionally, the apparatus further comprises:
a second detecting module 450, configured to detect whether a length of a filename of the file exceeds a preset length, where the preset length is a maximum length of the filename when the filename can be completely displayed;
the display module 430 is further configured to, when the detection result of the second detection module 450 is that the length of the file name of the file exceeds the preset length, perform the operation of displaying the processed file name.
Optionally, the display module 430 is further configured to display the complete filename of the file when the detection result of the second detection module 450 is that the length of the filename of the file does not exceed the preset length.
In summary, the filename display device provided in this embodiment divides m files in a folder into n groups according to each filename, where when a group includes at least two files, a similarity between filenames of the at least two files is higher than a preset threshold; and when the file names of the files in the group comprising at least two files are displayed, determining similar fields in the file names of the files in the group, performing preset processing on the determined fields, and displaying the processed file names. The preset processing comprises hiding the determined field, or replacing the determined field with preset content, wherein the length of the preset content is smaller than that of the replaced field; because repeated parts in the file names of the files are usually invalid information and do not help users greatly, more effective information can be displayed when the file names are displayed by presetting the file names, and the problems that the displayed information is effective and some effective information is not displayed in the prior art are solved; more effective information in the file name can be displayed, and then the user experience of the user is improved.
It should be noted that: the file name display apparatus provided in the above embodiment is only illustrated by dividing the functional modules, and in practical applications, the functions may be allocated to different functional modules according to needs, that is, the internal structure of the server is divided into different functional modules to complete all or part of the functions described above. In addition, the embodiments of the file name display apparatus and the file name display method provided in the above embodiments belong to the same concept, and specific implementation processes thereof are described in detail in the embodiments of the methods, and are not described herein again.
An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium may be a computer-readable storage medium contained in the memory in the foregoing embodiment; or it may be a separate computer-readable storage medium not incorporated in the terminal. The computer-readable storage medium stores one or more programs, and the one or more programs are used by one or more processors to execute a database verification method of the database verification client or to execute a file name display method of the server.
Fig. 5 is a block diagram of a terminal 500 according to an embodiment of the present invention, which may include Radio Frequency (RF) circuitry 501, a memory 502 including one or more computer-readable storage media, an input unit 503, a display unit 504, a sensor 505, audio circuitry 506, a Wireless Fidelity (WiFi) module 507, a processor 508 including one or more processing cores, and a power supply 509. Those skilled in the art will appreciate that the terminal structure shown in fig. 5 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 501 may be used for receiving and transmitting signals during a message or call, and in particular, for receiving downlink information of a base station and then processing the same by one or more processors 508, and further, for transmitting data related to an uplink to the base station, in general, the RF circuit 501 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM), a transceiver, a coupler, a low Noise Amplifier (L NA, &ltttttttranslation = L "&tttl ttt/ttt gtt low Noise Amplifier, a duplexer, etc. in addition, the RF circuit 501 may also communicate with a network and other devices through wireless communication which may use any communication standard or protocol, including, but not limited to, a Global System for Mobile communication (GSM), a general packet Radio Service (Access, Short Message Service (SMS), a Short Access Service (SMS), a multicast Service (Service), a long term evolution (CDMA), a multicast (Service) protocol (Service), a Short Access Service (GPRS), a multicast Service (Service), a multicast Service (SMS), a multicast Service (Radio Access), a multicast, a wireless communication network, a wireless communication network, a wireless communication network, a wireless communication System, a wireless.
The memory 502 may be used to store software programs and modules, and the processor 508 executes various functional applications and data processing by operating the software programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal, etc. Further, the memory 502 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 502 may also include a memory controller to provide the processor 508 and the input unit 503 access to the memory 502.
The input unit 503 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, the input unit 503 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 508, and can receive and execute commands sent by the processor 508. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 503 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The Display unit 504 may include a Display panel, which may be optionally configured in the form of a liquid Crystal Display (L CD, &lTtTtranslation = L "&tttL &l/T &gTtrequired Crystal Display), Organic light Emitting diodes (O L ED, Organic L ight-emissive Diode), and the like, further, the touch sensitive surface may cover the Display panel, and when a touch operation is detected on or near the touch sensitive surface, the touch sensitive surface is transmitted to the processor 508 to determine the type of touch event, and then the processor 508 provides a corresponding visual output on the Display panel according to the type of touch event.
The terminal may also include at least one sensor 505, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or the backlight when the terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal, detailed description is omitted here.
Audio circuitry 506, a speaker, and a microphone may provide an audio interface between the user and the terminal. The audio circuit 506 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electric signal, which is received by the audio circuit 506 and converted into audio data, which is then processed by the audio data output processor 508, and then transmitted to, for example, another terminal via the RF circuit 501, or the audio data is output to the memory 502 for further processing. The audio circuit 506 may also include an earbud jack to provide communication of peripheral headphones with the terminal.
WiFi belongs to short-distance wireless transmission technology, and the terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 507, and provides wireless broadband internet access for the user. Although fig. 5 shows the WiFi module 507, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 508 is a control center of the terminal, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 502 and calling data stored in the memory 502, thereby integrally monitoring the mobile phone. Optionally, the processor 509 may include one or more processing cores; preferably, the processor 508 may integrate an application processor, which primarily handles operating systems, user interfaces, application programs, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 508.
The terminal also includes a power supply 509 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 509 via a power management system to manage charging, discharging, and power consumption management functions via the power management system. The power supply 509 may also include any component such as one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the terminal may further include a camera, a bluetooth module, and the like, which will not be described herein. Specifically, in this embodiment, the processor 508 in the terminal may execute one or more program instructions stored in the memory 502, so as to implement the file name display method provided in the above-described method embodiments.
It should be understood that, as used herein, the singular forms "a," "an," "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (8)

1. A file name display method, characterized in that the method comprises:
acquiring file names of m files in a folder, wherein m is an integer larger than 1;
dividing the m files into n groups according to the similarity between each file name and the file names in the existing groups; when the grouping comprises at least two files, the similarity of the file names of the at least two files is higher than a preset threshold value;
when the file names of the files in a group comprising at least two files are displayed, determining similar fields in the file names of the files in the group, presetting the determined fields, and displaying the processed file names; the preset processing comprises hiding the field, or replacing the field with preset content, wherein the length of the preset content is smaller than that of the replaced field;
the dividing the files into n groups according to the similarity between the file names and the file names in the existing groups comprises:
for each file in the m files, performing character string matching on the file name of each file and the file names in the existing groups to calculate the similarity between each file and the file names in the existing groups, and detecting whether the existing groups contain target groups, wherein the target groups are the groups with the similarity between the file names and the file names of the files higher than the preset threshold value;
if the target group is contained, adding the file to the target group;
and if the target group is not included, newly creating a group including the file.
2. The method of claim 1, further comprising:
detecting whether the file names of the m files comprise file names with lengths exceeding a preset length, wherein the preset length is the maximum length of the file names capable of being displayed completely;
and if the file names with the length exceeding the preset length are included, executing the step of acquiring the file names of the m files in the folder.
3. The method of claim 1, further comprising:
detecting whether the length of the file name of the file exceeds a preset length, wherein the preset length is the maximum length of the file name when the file name can be completely displayed;
and if the length of the file name of the file exceeds the preset length, executing the operation of displaying the processed file name.
4. The method of claim 3,
and if the length of the file name of the file does not exceed the preset length, displaying the complete file name of the file.
5. A file name display apparatus, characterized in that the apparatus comprises:
the acquisition module is used for acquiring file names of m files in the folder, wherein m is an integer larger than 1;
the dividing module is used for dividing the m files into n groups according to the similarity between each file name and the file names in the existing groups; when the grouping comprises at least two files, the similarity of the file names of the at least two files is higher than a preset threshold value;
the display module is used for determining similar fields in the file names of the files in the group when the file names of the files in the group comprising at least two files are displayed, presetting the determined fields and displaying the processed file names; the preset processing comprises hiding the field, or replacing the field with preset content, wherein the length of the preset content is smaller than that of the replaced field;
the dividing module is further configured to:
for each file in the m files, performing character string matching on the file name of each file and the file names in the existing groups to calculate the similarity between each file and the file names in the existing groups, and detecting whether the existing groups contain target groups, wherein the target groups are the groups with the similarity between the file names and the file names of the files higher than the preset threshold value;
if the target group is contained, adding the file to the target group;
and if the target group is not included, newly creating a group including the file.
6. The apparatus of claim 5, further comprising:
the first detection module is used for detecting whether the file names of the m files comprise file names with the length exceeding a preset length, and the preset length is the maximum length when the file names can be completely displayed;
the obtaining module is further configured to execute the step of obtaining the filenames of the m files in the folder when the detection result of the first detecting module includes the filenames whose length exceeds the preset length.
7. The apparatus of claim 5, further comprising:
the second detection module is used for detecting whether the length of the file name of the file exceeds a preset length, wherein the preset length is the maximum length of the file name when the file name can be completely displayed;
the display module is further configured to execute the operation of displaying the processed file name when the detection result of the second detection module indicates that the length of the file name of the file exceeds the preset length.
8. The apparatus of claim 7,
the display module is further configured to display the complete filename of the file when the detection result of the second detection module indicates that the length of the filename of the file does not exceed the preset length.
CN201611248152.9A 2016-12-29 2016-12-29 File name display method and device Active CN106682189B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611248152.9A CN106682189B (en) 2016-12-29 2016-12-29 File name display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611248152.9A CN106682189B (en) 2016-12-29 2016-12-29 File name display method and device

Publications (2)

Publication Number Publication Date
CN106682189A CN106682189A (en) 2017-05-17
CN106682189B true CN106682189B (en) 2020-07-10

Family

ID=58873181

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611248152.9A Active CN106682189B (en) 2016-12-29 2016-12-29 File name display method and device

Country Status (1)

Country Link
CN (1) CN106682189B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108090183B (en) * 2017-12-15 2021-03-26 东软集团股份有限公司 File name display method, device and equipment
CN109344125A (en) * 2018-08-27 2019-02-15 维沃移动通信有限公司 A kind of file name update method and terminal device
CN110990342A (en) * 2019-11-25 2020-04-10 维沃移动通信有限公司 File name processing method and electronic equipment
CN113360118A (en) * 2021-06-29 2021-09-07 联想(北京)有限公司 Information display method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104281644A (en) * 2014-08-22 2015-01-14 广州三星通信技术研究有限公司 Filename information display method and device
CN105827822A (en) * 2016-01-29 2016-08-03 维沃移动通信有限公司 File name display processing method and mobile terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3317763B2 (en) * 1993-11-05 2002-08-26 富士通株式会社 Program starting method and processing device thereof
US20070143298A1 (en) * 2005-12-16 2007-06-21 Microsoft Corporation Browsing items related to email
CN102314493A (en) * 2011-08-26 2012-01-11 珠海市魅族科技有限公司 Method and terminal for displaying file and/or file folder
CN105373611B (en) * 2015-11-18 2018-09-04 广东欧珀移动通信有限公司 A kind of document display method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104281644A (en) * 2014-08-22 2015-01-14 广州三星通信技术研究有限公司 Filename information display method and device
CN105827822A (en) * 2016-01-29 2016-08-03 维沃移动通信有限公司 File name display processing method and mobile terminal

Also Published As

Publication number Publication date
CN106682189A (en) 2017-05-17

Similar Documents

Publication Publication Date Title
US10635449B2 (en) Method and apparatus for running game client
CN106161628B (en) Shooting file uploading method and device
KR101978590B1 (en) Message updating method, device and terminal
CN104852885B (en) Method, device and system for verifying verification code
CN106775833B (en) Device driver loading method, terminal and system
CN106254910B (en) Method and device for recording image
CN106682189B (en) File name display method and device
CN106791916B (en) Method, device and system for recommending audio data
CN105227598B (en) Resource sharing method, device and system based on cloud storage
CN109495769B (en) Video communication method, terminal, smart television, server and storage medium
CN107317828B (en) File downloading method and device
CN109688611B (en) Frequency band parameter configuration method, device, terminal and storage medium
CN106020945B (en) Shortcut item adding method and device
CN106055598B (en) Information display method and device
CN106302101B (en) Message reminding method, terminal and server
CN108228357B (en) Memory cleaning method and mobile terminal
CN109728918B (en) Virtual article transmission method, virtual article reception method, device, and storage medium
CN105159655B (en) Behavior event playing method and device
CN111274463A (en) Information display method and device based on IM contact person grouping setting and storage medium
CN104954231B (en) Method and device for sending and displaying recommendation information
CN106657281B (en) File sharing method and device
CN108234275B (en) Method and device for releasing communication information
KR102263977B1 (en) Methods, devices, and systems for performing information provision
CN106209601B (en) State update message pushing method and device
CN106330875B (en) Message display method and device

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
GR01 Patent grant
GR01 Patent grant