CN114968934A - File scanning management method and system for vehicle-mounted media - Google Patents

File scanning management method and system for vehicle-mounted media Download PDF

Info

Publication number
CN114968934A
CN114968934A CN202210536883.2A CN202210536883A CN114968934A CN 114968934 A CN114968934 A CN 114968934A CN 202210536883 A CN202210536883 A CN 202210536883A CN 114968934 A CN114968934 A CN 114968934A
Authority
CN
China
Prior art keywords
file
folder
media
picture
audio
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
CN202210536883.2A
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.)
SHENZHEN NOWADA TECHNOLOGY CO LTD
Original Assignee
SHENZHEN NOWADA 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 SHENZHEN NOWADA TECHNOLOGY CO LTD filed Critical SHENZHEN NOWADA TECHNOLOGY CO LTD
Priority to CN202210536883.2A priority Critical patent/CN114968934A/en
Publication of CN114968934A publication Critical patent/CN114968934A/en
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
    • 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/162Delete operations

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 application relates to a file scanning management method and a file scanning management system for vehicle-mounted media, which belong to the technical field of vehicle-mounted media data processing, and the method comprises the following steps: acquiring folder information of a folder to be detected; judging whether the folder to be detected contains a preset target folder or not based on the folder information; if the target folder is contained, directly reading the media file of the target folder; determining whether the target folder contains a non-universal media file; if the non-universal media file is contained, acquiring a deletion confirmation instruction; deleting the non-generic media file based on the delete confirmation instruction; if the target folder is not contained, a new folder is created to serve as the target folder; acquiring a media file in a folder to be detected; the media file is moved to the target folder. The method and the device have the effects of improving the reading and scanning speed of the media file as much as possible and conveniently managing the media file.

Description

File scanning management method and system for vehicle-mounted media
Technical Field
The present application relates to the technical field of vehicle-mounted media data processing, and in particular, to a method and a system for file scanning management of vehicle-mounted media.
Background
With the rapid development of the automotive electronics industry, the vehicle-mounted terminal system is more and more favored and valued by people, the functions of the vehicle-mounted terminal system are more and more enriched, especially the vehicle-mounted media system can bring joyful and comfortable driving experience to people, and most of the existing vehicle-mounted media systems need users to access or insert multimedia media (such as a U disk and a memory card) to read media files through mobile phone Bluetooth.
However, the current file reading algorithm is usually a traditional scanning mode of traversing files under a root directory, which causes great resource waste of the system, and causes that the speed of the media files is very slow when the media files are read and scanned by a vehicle-mounted media system, which is inconvenient for managing the media files.
Disclosure of Invention
In order to improve the reading and scanning rate of the media file as much as possible and facilitate the management of the media file, the application provides a file scanning management method and a file scanning management system for vehicle-mounted media.
In a first aspect, the present application provides a file scanning management method for a vehicle-mounted media, which adopts the following technical scheme:
a file scanning management method for vehicle-mounted media comprises the following steps:
acquiring folder information of a folder to be detected;
judging whether the folder to be detected contains a preset target folder or not based on the folder information;
if the target folder is contained, directly reading the media file of the target folder;
determining whether the target folder contains a non-universal media file;
if the non-universal media file is contained, acquiring a deletion confirmation instruction;
deleting the non-generic media file based on the deletion confirmation instruction;
if the target folder is not contained, a new folder is created to serve as the target folder;
acquiring the media files in the folder to be tested;
and moving the media file to the target folder.
By adopting the technical scheme, whether the folder to be detected contains the target folder or not is judged according to the folder information, if yes, the media files of the target folder are directly read, the contents of all the folders do not need to be scanned, the scanning time can be saved, meanwhile, whether the target folder contains the non-universal media files or not is determined, if yes, the non-universal media files are deleted according to the deletion confirmation instruction, and the time for scanning next time can be reduced. And if not, a new folder is created as the target folder, and the media file is moved into the target folder, so that the media file can be read next time conveniently. The reading and scanning speed of the media file can be improved as much as possible, and the media file is convenient to manage.
Preferably, before creating a new folder as the target folder, the method further includes:
acquiring the name of the folder to be detected as a first name;
acquiring the name of the target folder as a second name;
matching the first name with the second name, and obtaining matching similarity;
judging whether the matching similarity is greater than or equal to a preset similarity or not;
if the matching similarity is greater than or equal to the preset similarity, reading the file information of the corresponding file in the folder to be tested;
judging whether the file is the media file or not based on the file information;
if the file is the media file, renaming the name of the corresponding folder to be tested to be the second name and stopping executing the subsequent steps;
and if the matching similarity is smaller than the preset similarity, not reading the corresponding file information of the files in the folder to be tested.
By adopting the technical scheme, the matching similarity of the first name and the second name is obtained, whether the matching similarity is greater than or equal to the preset similarity is judged, and whether a target folder exists in the folder to be detected can be judged. If the matching similarity is larger than or equal to the preset similarity, judging whether the file is a media file or not according to the file information, and if so, renaming the folder to be tested to be a second name; and if the matching similarity is smaller than the preset similarity, the file information of the file in the folder to be detected does not need to be read. Therefore, the method can reduce the possibility of moving the media file as much as possible under the condition of conveniently reading the media file, and further improve the efficiency of scanning the media file as much as possible.
Preferably, the target folder comprises an audio folder, a video folder and a picture folder;
acquiring file types of the media files, wherein the file types comprise audio files, video files and picture files;
when the file type is the audio file, moving the audio file to the audio folder;
when the file type is the video file, moving the video file to the video folder;
and when the file type is the picture file, moving the picture file to the picture folder.
By adopting the technical scheme, the audio file is moved to the audio folder, the video file is moved to the video folder, the picture file is moved to the picture folder, and the files can be conveniently classified.
Preferably, the method further comprises the following steps:
determining a file type of the media file;
when the file type comprises the audio file and the picture file, acquiring picture file information of the picture file and audio file information of the audio file;
judging whether the picture file information is matched with the audio file information;
if the picture file information is matched with the audio file information, moving the corresponding picture file to the audio folder;
and if the picture file information is not matched with the audio file information, moving the corresponding picture file to the picture folder.
By adopting the technical scheme, whether the picture file information is matched with the audio file information is judged, and the picture file and the audio file can be conveniently classified. If the picture files are matched with the audio file, the corresponding picture files are moved to an audio folder; if not, the picture file is moved to the picture folder. Therefore, the picture files can be further classified more finely, and the management effect of the files is improved.
Preferably, after the moving the media file to the target folder, the method further includes:
judging whether the folder to be detected contains lyric files or not;
if the lyric file is contained, acquiring lyric file information of the lyric file;
judging whether the lyric file information is matched with the audio file information;
if the lyric files are matched with the audio files, moving the lyric files to the audio file folder;
and if not, deleting the lyric file.
By adopting the technical scheme, whether the file to be tested contains the lyric file is judged, if yes, whether the lyric file information is matched with the audio file is judged, if yes, the lyric file is moved to the audio file, and if not, the lyric file is deleted, so that the file can be further managed.
Preferably, before the moving the media file to the target folder, the method further includes:
judging whether a file movement confirmation instruction is received or not;
if the file movement confirmation instruction is not received, a selection instruction is obtained;
selecting the corresponding folder to be tested based on the selection instruction to move the corresponding media file;
and if the file movement confirmation instruction is received, not acquiring the selection instruction.
By adopting the technical scheme, whether the file movement confirmation instruction is received or not is judged, and whether the media file is moved or not can be determined. If the file movement confirmation instruction is not received, selecting the corresponding folder to be tested according to the obtained selection instruction to move the corresponding media file; if the file movement confirmation instruction is received, the selection instruction does not need to be acquired. Therefore, the media files in the folder to be tested can be selectively moved according to the file movement confirmation instruction, and the operability of file movement is improved.
Preferably, after the receiving the file movement confirmation instruction, the method further includes:
acquiring the existence duration of the file movement confirmation instruction;
judging whether the existing time length is greater than a preset time length or not;
if the existing time length is longer than the preset time length, the file movement confirmation instruction is obtained again;
and if the existing time length is not greater than the preset time length, the file movement confirmation instruction does not need to be acquired again.
By adopting the technical scheme, whether the existing time length is greater than the preset time length or not is judged, and the effective time of the file movement confirmation instruction can be judged. If the existing time length is longer than the preset time length, the file movement confirmation instruction is proved to be invalid at the moment, and the file movement confirmation instruction needs to be obtained again; and if the existing time length is less than or equal to the preset time length, the file movement confirmation instruction does not need to be acquired again. The security of file movement can be improved.
In a second aspect, the present application provides a file scanning management system for a vehicle-mounted media, which adopts the following technical solutions:
a file scanning management system for vehicular media, comprising:
the information acquisition module is used for acquiring folder information of the folder to be detected;
the judging module is used for judging whether the folder to be detected contains a preset target folder or not based on the folder information;
the file reading module is used for directly reading the media file of the target folder if the target folder is contained;
the file determining module is used for determining whether the target folder contains a non-universal media file or not;
the instruction acquisition module is used for acquiring a deletion confirmation instruction if the non-universal media file is contained;
a deletion module for deleting the non-generic media file based on the deletion confirmation instruction;
the folder creating module is used for creating a new folder as the target folder if the target folder is not contained;
the file acquisition module is used for acquiring the media files in the folder to be detected;
and the file moving module is used for moving the media file to the target folder.
By adopting the technical scheme, the information acquisition module acquires the folder information of the folder to be detected and sends the folder information to the judgment module connected with the information acquisition module. The judging module judges whether the folder to be detected contains a preset target folder or not according to the folder information, and sends a judging result to the file reading module, the file determining module and the folder creating module which are connected with the judging module. When the preset target folder is contained, the file reading module directly reads the media files in the target folder. And meanwhile, the file determining module determines whether the target folder contains the non-universal media file or not, and sends the judgment result to the instruction acquisition module connected with the file determining module. When the target folder contains the non-universal media files, the instruction acquisition module acquires the deletion confirmation instruction and sends the deletion confirmation instruction to the deletion module connected with the instruction acquisition module, and the deletion module deletes the non-universal media files according to the deletion confirmation instruction. The file scanning device can conveniently scan the file next time, and time consumed by scanning is reduced. And if the folder to be tested does not contain the target folder, the folder creating module creates a new folder as the target folder. And finally, the file moving module moves the media file to the target folder. Therefore, the reading and scanning speed of the media file can be improved as much as possible, and the media file is convenient to manage.
Preferably, the method further comprises the following steps:
the file type acquisition module is used for acquiring the file types of the media files, wherein the file types comprise audio files, video files and picture files;
the audio file moving module is used for moving the audio file to the audio folder when the file type is the audio file;
the video file moving module is used for moving the video file to the video folder when the file type is the video file;
and the picture file moving module is used for moving the picture file to the picture folder when the file type is the picture file.
By adopting the technical scheme, the file type acquisition module acquires the file type of the media file and sends the file type to the audio file moving module, the video file moving module and the picture file moving module which are connected with the file type acquisition module. When the file type is an audio file, the audio file moving module moves the audio file to an audio folder; when the file type is a video file, the video file moving module moves the video file to a video folder; and when the file type is the picture file, the picture file moving module moves the picture file to the picture folder. Therefore, the media files can be conveniently classified and managed.
In summary, the present application includes at least one of the following beneficial technical effects:
1. when the target folder exists, the media files of the target folder are directly read, the content of all the folders does not need to be scanned, the scanning time can be saved, whether the target folder contains the non-universal media files or not is determined, if yes, the non-universal media files are deleted according to the deletion confirmation instruction, and the time for scanning next time can be reduced. And if not, creating a new folder as the target folder, and moving the media file into the target folder, so that the media file can be read next time conveniently. The reading and scanning speed of the media file can be improved as much as possible, and the media file is convenient to manage;
2. and judging whether the matching similarity is greater than or equal to the preset similarity or not, and judging whether a target folder exists in the folder to be detected or not. If the matching similarity is greater than or equal to the preset similarity and the file is a media file, renaming the folder to be tested to be a second name; and if the matching similarity is smaller than the preset similarity, the file information of the file in the folder to be detected does not need to be read. Therefore, the method can reduce the possibility of moving the media file as much as possible under the condition of conveniently reading the media file, thereby improving the efficiency of scanning the media file as much as possible;
3. the video files are moved to the video folder, the picture files are moved to the picture folder, and the files can be conveniently classified.
Drawings
Fig. 1 is a schematic overall flow chart of a file scanning management method for vehicle media according to an embodiment of the present application;
FIG. 2 is a schematic flow chart illustrating steps S11-S18 according to an embodiment of the present application;
FIG. 3 is a schematic flow chart illustrating steps S21 through S24 according to an embodiment of the present application;
FIG. 4 is a schematic flow chart illustrating steps S31 through S35 according to an embodiment of the present application;
FIG. 5 is a schematic flow chart illustrating steps S41-S45 according to an embodiment of the present application;
FIG. 6 is a schematic flow chart illustrating steps S51 through S54 according to an embodiment of the present application;
FIG. 7 is a schematic flowchart of steps S61-S64 according to an embodiment of the present application;
FIG. 8 is a block diagram of a file scanning management system for vehicle media according to an embodiment of the present disclosure;
fig. 9 is a block diagram illustrating a structure of classifying media files in the file scanning management system for vehicle media according to the present invention.
Description of reference numerals:
1. an information acquisition module; 2. a judgment module; 3. a file reading module; 4. a file determination module; 5. an instruction acquisition module; 6. a deletion module; 7. a folder creation module; 8. a file acquisition module; 9. a file moving module; 10. a file type acquisition module; 11. an audio file moving module; 12. a video file moving module; 13. and a picture file moving module.
Detailed Description
The present application is described in further detail below with reference to figures 1-9.
The embodiment of the application discloses a file scanning management method for vehicle-mounted media.
Referring to fig. 1, the file scanning management method of the vehicle media includes:
s1, acquiring folder information of a folder to be detected;
s2, judging whether the folder to be detected contains a preset target folder or not based on the folder information;
s3, if the target folder is contained, directly reading the media file of the target folder;
s4, determining whether the target folder contains a non-universal media file or not;
s5, if the non-universal media file is contained, acquiring a deletion confirmation instruction;
s6, deleting the non-universal media file based on the deletion confirmation instruction;
s7, if the target folder is not contained, a new folder is created to serve as the target folder;
s8, acquiring a media file in the folder to be detected;
and S9, moving the media file to a target folder.
Specifically, when a storage medium such as a usb disk or a memory card is inserted into the system, folder information of a folder to be tested in the storage medium is first obtained, where the folder to be tested is a folder that appears when the storage medium is opened, that is, a first-level file, and does not include the folder in the folder. Wherein the folder information includes a name of the folder.
And then, judging whether the folder to be detected contains a preset target folder or not according to the folder information, namely judging whether the folder to be detected has the folder with the same name as the target folder or not according to the name of the folder, wherein for example, the name of the target folder is vehicle-mounted audio, the name of the folder to be detected has vehicle-mounted audio, photo album, work and the like, and determining that the folder to be detected contains the target folder at the moment, otherwise, the folder does not contain the target folder.
If the folder to be detected contains the target folder, the media files in the target folder are directly scanned and read without scanning other folders, so that the time consumed by scanning can be reduced, and the scanning efficiency is improved. Further, in order to enable the media files to be played on the vehicle media, it is necessary to determine whether the target folder contains non-universal media files, wherein the non-universal media files refer to media files that need to be played by using a special player, for example, video files in Qlv format, which can only be played by using a special player, and therefore the media files in Qlv format are non-universal media files.
The method for determining whether the non-universal media file exists may be that the file format of the media file is obtained by scanning the media file in the target folder, and then the file formats are matched with the preset file format of the non-universal media file, if so, the target folder is proved to have the non-universal media file, otherwise, the target folder is not.
If the non-universal media file is determined to be contained, the deletion confirmation instruction is acquired at the moment, the acquisition mode can be that a deleted dialog box pops up on a display screen of the vehicle-mounted media, and then the deletion confirmation instruction can be acquired after a user clicks and confirms, so that the non-universal media file can be deleted, and further, when a U disk or a memory card is inserted next time, the non-universal media file does not need to be scanned, and the time consumed by reading the file can be further reduced. And if the non-universal media file is not contained, the operation of deleting is not needed.
And when the to-be-detected folder does not contain the target folder, acquiring a creation instruction at the moment, and then creating a new folder as the target folder according to the creation instruction, wherein the creation mode can also be that a folder creation confirmation prompt pops up on a display screen, and the folder can be created after the user confirms. Certainly, the system may acquire the authority to create the folder in advance, and then the folder may be automatically created without confirmation.
After the target folder is created, the system scans the folder to be detected, then determines the media files therein according to the types of the scanned files, namely obtains the media files in the folder to be detected, and finally moves the media files, such as video files, audio files, picture files and the like, to the target folder, so that when the storage medium is used next time, the media files in the target folder can be directly read, all the folders to be detected do not need to be scanned again, the reading and scanning speed of the media files can be improved as much as possible, and the media files are convenient to manage.
Referring to fig. 2, further, the user may create the target folder in advance, but there may be errors in the creation process of the target folder, which may cause errors in the naming process, and therefore, in another embodiment, before creating a new folder as the target folder, the following steps are further included:
s11, acquiring the name of the folder to be detected as a first name;
s12, acquiring the name of the target folder as a second name;
s13, matching the first name with the second name to obtain matching similarity;
s14, judging whether the matching similarity is greater than or equal to a preset similarity;
s15, if the matching similarity is larger than or equal to the preset similarity, reading file information of the files in the corresponding folder to be tested;
s16, judging whether the file is a media file or not based on the file information;
s17, if the file is a media file, renaming the name of the corresponding folder to be tested to be a second name and stopping executing the subsequent steps;
and S18, if the matching similarity is smaller than the preset similarity, not reading the file information of the file in the corresponding folder to be tested.
Specifically, the name of the folder to be tested is obtained and used as a first name, the name of the target folder is obtained and used as a second name, then the first name and the second name are matched, and matching similarity is obtained. The matching similarity may be determined according to the actual conditions of the names, for example, if the second name is a vehicle-mounted audio folder, and the first name contains a vehicle, the matching similarity is 50%, if the first name contains an audio, the matching similarity is 30%, if the first name contains a vehicle and an audio in the same order as the second name, the matching similarity is 10%, and if the first name and the second name both match, the matching similarity is 90%.
And then judging whether the matching similarity is greater than or equal to a preset similarity, wherein the preset similarity can be set according to the actual situation. If the matching similarity is greater than or equal to the preset similarity, for example, the preset similarity is 90%, and the matching similarity is 90%, then the two similarities are equal, then the probability proves that the folder to be tested is the target folder, and at this time, the file information of the file in the folder to be tested is read, wherein the file information includes the file type.
And then judging whether the file is a media file or not according to the file information, namely judging whether the read file is the media file or not according to the file type. If the folder to be tested is the media file, the name of the folder to be tested is renamed to be the second name, and the subsequent steps are stopped from being executed, namely a new folder does not need to be created.
If the read file is not a media file, it is proved that the folder to be tested is not the target folder, and then the subsequent steps need to be continued, that is, a new folder needs to be created. Similarly, if the matching similarity is smaller than the preset similarity, it is proved that the target folder is not included in the folder to be tested, at this time, the folder information in the folder to be tested does not need to be read, and the next step is directly carried out, namely, a new folder is created to serve as the target folder. Therefore, the method can reduce the possibility of moving the media file as much as possible under the condition of conveniently reading the media file, and further improve the efficiency of scanning the media file as much as possible.
Further, in another embodiment, if the matching similarity is greater than or equal to the preset similarity, the ratio of the media files and the non-media files in the corresponding folder to be tested may be obtained, and then the ratio of the media files is compared with the preset ratio, and if the ratio of the media files is greater than the preset ratio, the target folder in the folder to be tested may be further determined; otherwise, the folder to be tested is proved not to be the target folder.
Referring to fig. 3, in another embodiment, in order to facilitate classifying the files, the process of moving the media files further includes the following steps:
s21, acquiring the file type of the media file;
s22, when the file type is an audio file, moving the audio file to an audio folder;
s23, when the file type is a video file, moving the video file to a video folder;
and S24, when the file type is the picture file, moving the picture file to a picture folder.
The target folder comprises an audio folder, a video folder and a picture folder. Specifically, file types of the media files are acquired, and the file types comprise audio files, video files and picture files.
When the file type is an audio file, moving the audio file to an audio folder; when the file type is a video file, moving the video file to a video folder; and when the file type is the picture file, moving the picture file to the picture folder. Similarly, when the file type includes an audio file, a video file and a picture file at the same time, the corresponding file is moved to the corresponding folder according to the file type. Therefore, the media files can be classified more carefully through the method, and the files are convenient to manage.
Referring to fig. 4, in another embodiment, when downloading the audio file, the album picture is downloaded at the same time, so that in order to better divide the picture, when moving the picture file, the following steps are further included:
s31, determining the file type of the media file;
s32, when the file types comprise audio files and picture files, obtaining picture file information of the picture files and audio file information of the audio files;
s33, judging whether the picture file information is matched with the audio file information;
s34, if the picture file information is matched with the audio file information, moving the corresponding picture file to an audio folder;
and S35, if the picture file information is not matched with the audio file information, moving the corresponding picture file to a picture folder.
Specifically, before moving the file, the file type of the media file is firstly confirmed, and when the file type comprises an audio file and a picture file, picture file information of the picture file and audio file information of the audio file are obtained, wherein the picture file information comprises a picture name, the audio file information comprises an audio name, and the picture name and the audio name both comprise a song or audio name and a singer name.
And then judging whether the picture file information is matched with the audio file information, namely judging whether the picture name is the same as the audio name, and if the picture file information is matched with the audio file information, moving the corresponding picture file, namely the matched picture file, to an audio file folder, so that the album picture of the audio file is matched with the audio file. And if the picture file information does not match the audio file information, moving the corresponding picture file, namely the unmatched picture file, to the picture folder. Therefore, the album pictures of the common picture files and the audio files can be distinguished, the classification of the picture files is more detailed, the using effect of the album pictures can be ensured as far as possible, and the management effect of the files is further improved.
Referring to FIG. 5, to further manage the files, in another embodiment, after moving the media files to the target folder, the following steps are included:
s41, judging whether the folder to be detected contains the lyric file;
s42, if the lyric file contains the lyric file, acquiring lyric file information of the lyric file;
s43, judging whether the lyric file information is matched with the audio file information;
s44, if the lyric files are matched, moving the lyric files to an audio folder;
and S45, if the lyric files are not matched, deleting the lyric files.
Specifically, after the media file is moved to the target folder, it is determined whether the to-be-tested folder contains the lyric file, that is, whether the to-be-tested folder contains the file in the lyric file format, for example: LRC, ID3(LRC), TXT, TAG, SRT, UTF, KSC, SMI, ASS, SSA, SNC, QLY, KRC, etc.
And if the lyric file contains the lyric file, acquiring lyric file information of the lyric file, wherein the lyric file information comprises a song name and a singer name. And then judging whether the lyric file information is matched with the audio file information, wherein the audio file information also comprises the name of the song and the name of the singer. And judging whether the lyric file information is matched with the audio file information, namely judging whether the song name and the singer name of the lyric file information are the same, so that whether the song is matched with the lyrics can be judged.
If the lyric files are matched with the audio files, the lyric files are moved to an audio folder, so that lyrics can be conveniently played when music is played; if the lyrics are not matched with the song, the lyrics are proved to be not matched with the song, the lyrics cannot be played, and the unmatched lyrics file is deleted. And furthermore, useless lyric files can be deleted, the time consumed by subsequent scanning is reduced, and the files can be further managed.
Referring to FIG. 6, in another embodiment, before moving the media file to the target folder, the following steps are further included:
s51, judging whether a file movement confirmation instruction is received or not;
s52, if the file movement confirmation instruction is not received, a selection instruction is obtained;
s53, selecting a corresponding folder to be tested based on the selection instruction to move a corresponding media file;
and S54, if the file movement confirmation instruction is received, not acquiring the selection instruction.
Specifically, before moving a media file, whether a file movement confirmation instruction is received or not needs to be judged, the judgment mode can be that the system generates a file movement instruction and feeds the file movement instruction back to a touch screen, and when the movement is confirmed by clicking, the system acquires the file movement confirmation instruction; if the click is not moved, no file movement confirmation instruction is received.
And when the file movement confirmation instruction is not received, acquiring a selection instruction, wherein the selection instruction can be a generated instruction or an instruction which is pre-stored and then called. After the selection instruction is obtained, the system calls the selection interface, so that a user can select the corresponding folder to be tested, and finally, the media files in the selected folder to be tested are moved to the target folder, so that the media files in the fixed folder are moved, and the movement selectivity is improved.
And when a file movement confirmation instruction is received, the file movement confirmation instruction proves that all the media files in the folder to be detected can be moved without re-selection, and at the moment, the media files can be directly moved without acquiring a selection instruction. Thereby improving the safety and accuracy of the operation.
Referring to fig. 7, in order to improve the simplicity of the operation, in another embodiment, after receiving the file movement confirmation instruction, the method further includes:
s61, acquiring the existence duration of the file movement confirmation instruction;
s62, judging whether the existing time length is greater than the preset time length or not;
s63, if the existing time length is longer than the preset time length, the file movement confirmation instruction is obtained again;
and S64, if the existing time length is not greater than the preset time length, the file movement confirmation instruction does not need to be obtained again.
Specifically, after the file movement confirmation instruction is obtained, the existence duration of the file movement confirmation instruction is obtained, which may be by generating a time file after the file movement confirmation instruction is obtained, where the time file records the obtaining time and the preset duration of the file movement confirmation instruction. Meanwhile, if the time file exists, the fact that the U disk or the memory card and the like are not accessed to the system for the first time can be proved, and if the time file does not exist, a file moving confirmation instruction needs to be obtained when the file is moved every time.
After the U disk or the memory card and the like are accessed into the vehicle-mounted system again, the system judges whether the existing time length is greater than the preset time length according to the time file, wherein the preset time length is pre-stored data and can be directly read. The existing time length may be obtained by obtaining the current time and the obtaining time of the file movement confirmation instruction, calculating a difference between the current time and the obtaining time, and obtaining an absolute value of the difference. And then judging whether the existing time length is greater than the preset time length or not, so that whether the file movement confirmation instruction is overdue or not can be judged.
If the existing time length is longer than the preset time length, the file movement confirmation instruction is proved to be overdue, and if the file needs to be moved again, the instruction needs to be obtained again, so that the file movement confirmation instruction is obtained again, and the file is convenient to move next time.
If the existing time length is not more than the preset time length, the file movement confirmation instruction is proved to be still in the valid period, at the moment, the file movement does not need to be confirmed again, and therefore the file movement confirmation instruction does not need to be obtained again at the moment. Therefore, the convenience of file movement can be improved, and meanwhile, the safety of file movement can be improved.
The implementation principle of the file scanning management method for the vehicle-mounted media in the embodiment of the application is as follows: whether the folder to be detected contains the target folder or not is judged according to the folder information, if yes, the media files of the target folder are directly read, the content of all the folders does not need to be scanned, the scanning time can be saved, meanwhile, whether the non-universal media files exist in the target folder or not is determined, if yes, the non-universal media files are deleted according to the deletion confirmation instruction, and the time for scanning next time can be shortened. And if not, a new folder is created as the target folder, and the media file is moved into the target folder, so that the media file can be read next time conveniently. The reading and scanning speed of the media file can be improved as much as possible, and the media file is convenient to manage.
The embodiment of the application also discloses a file scanning management system of the vehicle-mounted media, which can achieve the same technical effect as the file scanning management method of the vehicle-mounted media.
Referring to fig. 8, the file scanning management system of the in-vehicle media includes:
the information acquisition module 1 is used for acquiring folder information of a folder to be detected;
the judging module 2 is used for judging whether the folder to be detected contains a preset target folder or not based on the folder information;
the file reading module 3 is used for directly reading the media file of the target folder if the target folder is contained;
the file determining module 4 is used for determining whether the target folder contains the non-universal media file;
the instruction acquisition module 5 is used for acquiring a deletion confirmation instruction if the non-universal media file is contained;
a deletion module 6 for deleting the non-generic media file based on the deletion confirmation instruction;
the folder creating module 7 is used for creating a new folder as the target folder if the target folder is not contained;
the file acquisition module 8 is used for acquiring the media files in the folder to be detected;
and the file moving module 9 is used for moving the media file to the target folder.
Specifically, the information obtaining module 1 obtains folder information of a folder to be tested, and sends the folder information to the judging module 2 connected with the information obtaining module. The judging module 2 judges whether the folder to be detected contains a preset target folder or not according to the folder information, and sends the judging result to the file reading module 3, the file determining module 4 and the folder creating module 7 which are connected with the judging module.
When the preset target folder is included, the file reading module 3 directly reads the media file in the target folder. Meanwhile, the file determining module 4 determines whether the target folder contains the non-universal media file, and sends the determination result to the instruction obtaining module 5 connected with the file determining module.
When the target folder contains the non-universal media files, the instruction acquisition module 5 acquires a deletion confirmation instruction and sends the deletion confirmation instruction to the deletion module 6 connected with the instruction, and the deletion module 6 deletes the non-universal media files according to the deletion confirmation instruction. The file scanning device can conveniently scan the file next time, and time consumed by scanning is reduced.
If the folder to be tested does not contain the target folder, the folder creation module 7 creates a new folder as the target folder, and sends the created result to the file acquisition module 8. And then the file acquisition module 8 acquires the media file in the folder to be detected and sends the media file to the file moving module 9 connected with the file acquisition module, and finally the file moving module 9 moves the media file to the target folder. Therefore, the reading and scanning speed of the media file can be improved as much as possible, and the media file is convenient to manage.
Referring to fig. 9, the file scanning management system for in-vehicle media further includes:
the file type acquisition module 10 is used for acquiring the file types of the media files, wherein the file types comprise audio files, video files and picture files;
the audio file moving module 11 is used for moving the audio file to an audio folder when the file type is the audio file;
the video file moving module 12 is used for moving the video file to a video folder when the file type is the video file;
and the picture file moving module 13 is used for moving the picture file to the picture folder when the file type is the picture file.
Specifically, the file type obtaining module 10 obtains the file type of the media file, and sends the file type to the audio file moving module 11, the video file moving module 12 and the picture file moving module 13 connected thereto, where the file type includes an audio file, a video file and a picture file.
When the file type is an audio file, the audio file moving module 11 moves the audio file to an audio folder; when the file type is a video file, the video file moving module 12 moves the video file to a video folder; when the file type is a picture file, the picture file moving module 13 moves the picture file to a picture folder. Therefore, the media files can be conveniently classified and managed.
The above embodiments are preferred embodiments of the present application, and the protection scope of the present application is not limited by the above embodiments, so: equivalent changes in structure, shape and principle of the present application shall be covered by the protection scope of the present application.

Claims (9)

1. A file scanning management method for vehicle-mounted media is characterized by comprising the following steps:
acquiring folder information of a folder to be detected;
judging whether the folder to be detected contains a preset target folder or not based on the folder information;
if the target folder is contained, directly reading the media file of the target folder;
determining whether the target folder contains a non-universal media file;
if the non-universal media file is contained, acquiring a deletion confirmation instruction;
deleting the non-generic media file based on the deletion confirmation instruction;
if the target folder is not contained, a new folder is created to serve as the target folder;
acquiring the media files in the folder to be tested;
and moving the media file to the target folder.
2. The file scan management method of claim 1, further comprising, before said creating a new folder as said target folder:
acquiring the name of the folder to be detected as a first name;
acquiring the name of the target folder as a second name;
matching the first name with the second name, and obtaining matching similarity;
judging whether the matching similarity is greater than or equal to a preset similarity or not;
if the matching similarity is larger than or equal to the preset similarity, reading the file information of the corresponding file in the folder to be tested;
judging whether the file is the media file or not based on the file information;
if the file is the media file, renaming the name of the corresponding folder to be tested to be the second name and stopping executing the subsequent steps;
and if the matching similarity is smaller than the preset similarity, not reading the corresponding file information of the files in the folder to be tested.
3. The file scan management method according to claim 1 or 2, wherein the target folder includes an audio folder, a video folder, and a picture folder;
acquiring file types of the media files, wherein the file types comprise audio files, video files and picture files;
when the file type is the audio file, moving the audio file to the audio folder;
when the file type is the video file, moving the video file to the video folder;
and when the file type is the picture file, moving the picture file to the picture folder.
4. The file scan management method of claim 3, further comprising:
determining a file type of the media file;
when the file type comprises the audio file and the picture file, acquiring picture file information of the picture file and audio file information of the audio file;
judging whether the picture file information is matched with the audio file information;
if the picture file information is matched with the audio file information, moving the corresponding picture file to the audio folder;
and if the picture file information is not matched with the audio file information, moving the corresponding picture file to the picture folder.
5. The file scan management method of claim 4, further comprising, after said moving the media file to the target folder:
judging whether the folder to be detected contains lyric files or not;
if the lyric file is contained, acquiring lyric file information of the lyric file;
judging whether the lyric file information is matched with the audio file information;
if the lyric files are matched with the audio files, moving the lyric files to the audio file folder;
and if not, deleting the lyric file.
6. The file scan management method of claim 1, further comprising, prior to said moving said media file to said target folder:
judging whether a file movement confirmation instruction is received or not;
if the file movement confirmation instruction is not received, a selection instruction is obtained;
selecting the corresponding folder to be tested based on the selection instruction to move the corresponding media file;
and if the file movement confirmation instruction is received, not acquiring the selection instruction.
7. The file scanning management method according to claim 6, further comprising, after said receiving said file movement confirmation instruction:
acquiring the existence duration of the file movement confirmation instruction;
judging whether the existing time length is greater than a preset time length or not;
if the existing time length is longer than the preset time length, the file movement confirmation instruction is obtained again;
and if the existing time length is not greater than the preset time length, the file movement confirmation instruction does not need to be acquired again.
8. A file scanning management system for vehicle media, comprising:
the information acquisition module (1) is used for acquiring folder information of a folder to be detected;
the judging module (2) is used for judging whether the folder to be detected contains a preset target folder or not based on the folder information;
the file reading module (3) is used for directly reading the media file of the target folder if the target folder is contained;
a file determination module (4) for determining whether the target folder contains a non-universal media file;
the instruction acquisition module (5) is used for acquiring a deletion confirmation instruction if the non-universal media file is contained;
a deletion module (6) for deleting the non-generic media file based on the deletion confirmation instruction;
the folder creating module (7) is used for creating a new folder as the target folder if the target folder is not contained;
the file acquisition module (8) is used for acquiring the media files in the folder to be detected;
a file moving module (9) for moving the media file to the target folder.
9. The document scan management system of claim 8, further comprising:
the file type acquisition module (10) is used for acquiring the file types of the media files, wherein the file types comprise audio files, video files and picture files;
an audio file moving module (11) for moving the audio file to the audio folder when the file type is the audio file;
a video file moving module (12) for moving the video file to the video folder when the file type is the video file;
and the picture file moving module (13) is used for moving the picture file to the picture folder when the file type is the picture file.
CN202210536883.2A 2022-05-17 2022-05-17 File scanning management method and system for vehicle-mounted media Pending CN114968934A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210536883.2A CN114968934A (en) 2022-05-17 2022-05-17 File scanning management method and system for vehicle-mounted media

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210536883.2A CN114968934A (en) 2022-05-17 2022-05-17 File scanning management method and system for vehicle-mounted media

Publications (1)

Publication Number Publication Date
CN114968934A true CN114968934A (en) 2022-08-30

Family

ID=82983138

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210536883.2A Pending CN114968934A (en) 2022-05-17 2022-05-17 File scanning management method and system for vehicle-mounted media

Country Status (1)

Country Link
CN (1) CN114968934A (en)

Similar Documents

Publication Publication Date Title
US7650563B2 (en) Aggregating metadata for media content from multiple devices
US8612473B2 (en) Method and device for organizing user provided information with meta-information
US6549913B1 (en) Method for compiling an image database, an image database system, and an image data storage medium
US6335746B1 (en) Information processing method and apparatus for displaying a list of a plurality of image data files and a list of search results
CN1272733C (en) Method for providing extraneous information
EP1900207B1 (en) Creating standardized playlists and maintaining coherency
US7574655B2 (en) System and method for encapsulation of representative sample of media object
US8620967B2 (en) Managing metadata for occurrences of a recording
US20040034441A1 (en) System and method for creating an index of audio tracks
US7085767B2 (en) Data storage method and device and storage medium therefor
KR101103126B1 (en) Information processing apparatus, information processing method, and computer program
US9069883B2 (en) Document management method and document management apparatus using the same
EP1603060A2 (en) Method and apparatus for moving multi-media file and storage medium storing program for executing the method
CN100446112C (en) Method for display directory structure of RW data
US7610262B2 (en) File management device
US20040098750A1 (en) Method for fixing up last uniform resource locator representing path and file name of multiphoto/video asset
US20060204940A1 (en) Recording/reproducing apparatus, recording/reproducing apparatus and program
CN114968934A (en) File scanning management method and system for vehicle-mounted media
CN101432701A (en) Contents file processing device for mounting in vehicle
US20110072117A1 (en) Generating a Synthetic Table of Contents for a Volume by Using Statistical Analysis
EP1669898A2 (en) File system path processing device and method
KR970066847A (en) Data recording method and device
US20050019008A1 (en) Automatic identification of DVD title using internet technologies and fuzzy matching techniques
US20070091736A1 (en) System and method for storing and managing digital content
CN117768738A (en) Media file scanning method, device, equipment and storage medium

Legal Events

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