CN112732642A - Management method and terminal for storage space occupied by chat software - Google Patents

Management method and terminal for storage space occupied by chat software Download PDF

Info

Publication number
CN112732642A
CN112732642A CN202110043298.4A CN202110043298A CN112732642A CN 112732642 A CN112732642 A CN 112732642A CN 202110043298 A CN202110043298 A CN 202110043298A CN 112732642 A CN112732642 A CN 112732642A
Authority
CN
China
Prior art keywords
chat
upper limit
records
size
window
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.)
Granted
Application number
CN202110043298.4A
Other languages
Chinese (zh)
Other versions
CN112732642B (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.)
Fujian Tianquan Educational Technology Ltd
Original Assignee
Fujian Tianquan Educational Technology 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 Fujian Tianquan Educational Technology Ltd filed Critical Fujian Tianquan Educational Technology Ltd
Priority to CN202110043298.4A priority Critical patent/CN112732642B/en
Publication of CN112732642A publication Critical patent/CN112732642A/en
Application granted granted Critical
Publication of CN112732642B publication Critical patent/CN112732642B/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/11File system administration, e.g. details of archiving or snapshots
    • G06F16/113Details of archiving
    • 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/11File system administration, e.g. details of archiving or snapshots
    • G06F16/122File system administration, e.g. details of archiving or snapshots using management policies
    • G06F16/125File system administration, e.g. details of archiving or snapshots using management policies characterised by the use of retention policies
    • 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
    • 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/17Details of further file system functions
    • G06F16/1734Details of monitoring file system events, e.g. by the use of hooks, filter drivers, logs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a management terminal for occupying storage space by chat software; the invention stores the copy file of the chat record according to the chat window number and the chat date; receiving a parameter configuration request of a user, configuring exclusive chat record management parameters of a specified chat window, monitoring the operation of writing chat records into chat software, and deleting the chat records of the longest day of the chat window if the total size of the chat records of the specified chat window is larger than the upper limit of the storage size in the exclusive chat record management parameters; deleting the chat records with expired appointed windows at preset time every day according to the upper limit of the number of storage days in the exclusive chat record management parameters; the invention can control the file size of the chat records under the upper limit of the size allowed by the user according to the user requirement, and delete the chat records exceeding the upper limit of the storage days, thereby effectively and reasonably managing and controlling the total size of the chat records.

Description

Management method and terminal for storage space occupied by chat software
Technical Field
The invention relates to the technical field of computers, in particular to a management method and a terminal for storage space occupied by chat software.
Background
After the popularization of smart phones, chat software is almost installed in the smart phones. With the network speed exhibition, the chat content often contains a large amount of contents such as high-definition pictures, videos, audios and the like, so that the space occupied by the chat software is larger and larger. The existing chat software stores the chat records by default, so the chat records can be directly stored in a local storage space, and the space occupied by the chat software is larger and larger.
The existing mode stores the chat records, and each chat record can be increased and stored at will. The number of GB of the chatting records with one person can be up to, but the chatting records are required to be cleared up at this time, and the chatting records cannot be effectively and reasonably managed.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: the management method and the terminal for the storage space occupied by the chat software can effectively and reasonably manage the chat records.
In order to solve the technical problems, the invention adopts the technical scheme that:
a management method for occupying storage space by chat software comprises the following steps:
s1, storing the copy file of the chat record according to the chat window number and the chat date;
s2, receiving a first parameter configuration request of a user, configuring exclusive chat record management parameters of a specified chat window according to the first parameter configuration request, and monitoring chat software, wherein the exclusive chat record management parameters comprise a storage size upper limit and a storage day upper limit;
s3, when the chat software is monitored to write the chat records of the specified chat window, the step S4 is carried out;
s4, judging whether the total size of the chat records of the specified chat window is larger than the upper limit of the storage size, and deleting the chat records of the day with the date farthest from the current date if the total size of the chat records is larger than the upper limit of the storage size;
s5, repeating the step S4 until the total size of the chat records in the specified chat window is smaller than the upper limit of the storage size;
and S6, scanning the chat records of the specified chat window at preset time every day, and deleting the chat records of which the number of days from the current date exceeds the upper limit of the number of storage days.
In order to solve the technical problem, the invention adopts another technical scheme as follows:
a management terminal for occupying storage space by chat software, comprising a processor, a memory and a computer program stored on the memory and operable on the processor, wherein the processor executes the computer program to implement the following steps:
s1, storing the copy file of the chat record according to the chat window number and the chat date;
s2, receiving a first parameter configuration request of a user, configuring exclusive chat record management parameters of a specified chat window according to the first parameter configuration request, and monitoring chat software, wherein the exclusive chat record management parameters comprise a storage size upper limit and a storage day upper limit;
s3, when the chat software is monitored to write the chat records of the specified chat window, the step S4 is carried out;
s4, judging whether the total size of the chat records of the specified chat window is larger than the upper limit of the storage size, and deleting the chat records of the day with the date farthest from the current date if the total size of the chat records is larger than the upper limit of the storage size;
s5, repeating the step S4 until the total size of the chat records in the specified chat window is smaller than the upper limit of the storage size;
and S6, scanning the chat records of the specified chat window at preset time every day, and deleting the chat records of which the number of days from the current date exceeds the upper limit of the number of storage days.
The invention has the beneficial effects that: the invention carries out customized management on the chat records of the chat window appointed by the user according to the configuration of the user, and can gradually delete the longest content in the chat records according to the requirement of the user, thereby controlling the file size of the chat records under the upper limit of the size allowed by the user, deleting the chat records exceeding the upper limit of the storage days, and effectively and reasonably managing and controlling the total size of the chat records.
Drawings
Fig. 1 is a flowchart of a method for managing storage space occupied by chat software according to an embodiment of the present invention;
fig. 2 is a structural diagram of a management terminal for occupying a storage space by chat software according to an embodiment of the present invention;
fig. 3 is a detailed flowchart illustrating a management method for storage space occupied by chat software according to the size of a chat record according to an embodiment of the present invention;
description of reference numerals:
1. a management terminal for occupying storage space by chat software; 2. a processor; 3. a memory.
Detailed Description
In order to explain technical contents, achieved objects, and effects of the present invention in detail, the following description is made with reference to the accompanying drawings in combination with the embodiments.
Referring to fig. 1 and fig. 3, a method for managing storage space occupied by chat software includes:
s1, storing the copy file of the chat record according to the chat window number and the chat date;
s2, receiving a first parameter configuration request of a user, configuring exclusive chat record management parameters of a specified chat window according to the first parameter configuration request, and monitoring chat software, wherein the exclusive chat record management parameters comprise a storage size upper limit and a storage day upper limit;
s3, when the chat software is monitored to write the chat records of the specified chat window, the step S4 is carried out;
s4, judging whether the total size of the chat records of the specified chat window is larger than the upper limit of the storage size, and deleting the chat records of the day with the date farthest from the current date if the total size of the chat records is larger than the upper limit of the storage size;
s5, repeating the step S4 until the total size of the chat records in the specified chat window is smaller than the upper limit of the storage size;
and S6, scanning the chat records of the specified chat window at preset time every day, and deleting the chat records of which the number of days from the current date exceeds the upper limit of the number of storage days.
From the above description, the beneficial effects of the present invention are: the invention carries out customized management on the chat records of the chat window appointed by the user according to the configuration of the user, and can gradually delete the content of the chat records which are the longest according to the requirement of the user, thereby controlling the file size of the chat records under the upper limit of the size allowed by the user, deleting the chat records which exceed the upper limit of the storage days, and effectively and reasonably managing and controlling the total size of the chat records.
Further, still include:
s7, receiving a second parameter configuration request of a user, configuring general chat record management parameters for the chat software according to the second parameter configuration request, and monitoring the chat software, wherein the general chat record management parameters comprise a general storage size upper limit;
s8, when it is monitored that the chat software writes the chat records and the chat records belong to the chat window which is not configured with the exclusive chat record management parameters, the step S9 is executed;
s9, judging whether the total size of the chat records of the chat window is larger than the upper limit of the general preservation size, and if the total size of the chat records is larger than the upper limit of the general preservation size, deleting the chat records of the day with the date farthest from the current date;
and S10, repeating the step S9 until the total size of the chat records in the chat window is smaller than the upper limit of the general preservation size.
It can be known from the above description that the user can manage other windows not configured with the dedicated chat record management parameter through the general chat record management parameter, and delete the longest chat record when the size of the window chat record exceeds the general save size upper limit by setting the general save size upper limit, so that the total size of the chat record of the window is kept under the general save size upper limit, and the chat record is more reasonably controlled.
Further, the universal chat history management parameter further includes a universal upper limit of days to save, and further includes:
s11, scanning all the chat records of the chat window which are not configured with the exclusive chat record management parameters at preset time every day, and deleting the chat records of which the number of days from the current date exceeds the upper limit of the general storage number of days.
As can be seen from the above description, by setting the general upper limit of the reserved days, the program scans the chat records at the preset time every day, and deletes the chat records with the chat date whose number of days from the current date exceeds the general upper limit of the reserved days, so as to further perform more reasonable control on the chat records.
Furthermore, the exclusive chat record management parameter also comprises a resource priority deletion item;
the step S4 specifically includes:
s41, judging whether the resource priority deletion item is opened, if not, entering step S42, otherwise, judging whether the total size of the chat records of the specified chat window is larger than the upper limit of the storage size, and if the total size of the chat records is larger than the upper limit of the storage size, deleting the resource files contained in the chat records, wherein the resource files comprise pictures, videos and other non-text files;
s42, judging whether the total size of the chat records of the specified chat window is larger than the upper limit of the storage size, and if the total size of the chat records is still larger than the upper limit of the storage size, deleting the chat records of the day with the date farthest from the current date;
the step S5 specifically includes:
and repeatedly executing the step S42 until the total size of the chat records of the specified chat window is smaller than the upper limit of the saving size.
As can be seen from the above description, the user can also set the chat records of the designated window to preferentially delete the resource files in the chat records through the resource priority deletion item in the dedicated chat record management parameter, where the resource files include pictures, videos, and the like, so as to perform more reasonable control on the total size of the chat records of the designated window.
Further, the universal chat record management parameter also comprises a universal resource priority deletion item;
the step S9 specifically includes:
s91, judging whether the universal resource priority deleting item is opened or not, if not, entering step S92, otherwise, judging whether the total size of the chat records of the chat window is larger than the upper limit of the universal save size, and if the total size of the chat records is larger than the upper limit of the universal save size, deleting resource files contained in the chat records, wherein the resource files comprise pictures, videos and other files in non-text forms;
s92, judging whether the total size of the chat records of the chat window is larger than the upper limit of the general preservation size, and if the total size of the chat records is still larger than the upper limit of the preservation size, deleting the chat records of the day with the date farthest from the current date;
the step S10 specifically includes:
and repeatedly executing the step S92 until the total size of the chat records of the chat window is smaller than the upper limit of the storage size.
According to the above description, the user can set the priority deletion resource file for the windows not configured with the exclusive chat record management parameter through the universal resource priority deletion item in the universal chat record management parameter, and further perform more reasonable control on the chat record.
Referring to fig. 2, a management terminal for occupying a storage space by chat software includes a processor, a memory, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the following steps:
s1, storing the copy file of the chat record according to the chat window number and the chat date;
s2, receiving a first parameter configuration request of a user, configuring exclusive chat record management parameters of a specified chat window according to the first parameter configuration request, and monitoring chat software, wherein the exclusive chat record management parameters comprise a storage size upper limit and a storage day upper limit;
s3, when the chat software is monitored to write the chat records of the specified chat window, the step S4 is carried out;
s4, judging whether the total size of the chat records of the specified chat window is larger than the upper limit of the storage size, and deleting the chat records of the day with the date farthest from the current date if the total size of the chat records is larger than the upper limit of the storage size;
s5, repeating the step S4 until the total size of the chat records in the specified chat window is smaller than the upper limit of the storage size;
and S6, scanning the chat records of the specified chat window at preset time every day, and deleting the chat records of which the number of days from the current date exceeds the upper limit of the number of storage days.
From the above description, the beneficial effects of the present invention are: the invention carries out customized management on the chat records of the chat window appointed by the user according to the configuration of the user, and can gradually delete the content of the chat records which are the longest according to the requirement of the user, thereby controlling the file size of the chat records under the upper limit of the size allowed by the user, deleting the chat records which exceed the upper limit of the storage days, and effectively and reasonably managing and controlling the total size of the chat records.
Further, the processor, when executing the computer program, further comprises:
s7, receiving a second parameter configuration request of a user, configuring general chat record management parameters for the chat software according to the second parameter configuration request, and monitoring the chat software, wherein the general chat record management parameters comprise a general storage size upper limit;
s8, when it is monitored that the chat software writes the chat records and the chat records belong to the chat window which is not configured with the exclusive chat record management parameters, the step S9 is executed;
s9, judging whether the total size of the chat records of the chat window is larger than the upper limit of the general preservation size, and if the total size of the chat records is larger than the upper limit of the general preservation size, deleting the chat records of the day with the date farthest from the current date;
and S10, repeating the step S9 until the total size of the chat records in the chat window is smaller than the upper limit of the general preservation size.
It can be known from the above description that the user can manage other windows not configured with the dedicated chat record management parameter through the general chat record management parameter, and delete the longest chat record when the size of the window chat record exceeds the general save size upper limit by setting the general save size upper limit, so that the total size of the chat record of the window is kept under the general save size upper limit, and the chat record is more reasonably controlled.
Further, the universal chat history management parameter further includes a universal upper limit of days to save, and further includes:
s11, scanning all the chat records of the chat window which are not configured with the exclusive chat record management parameters at preset time every day, and deleting the chat records of which the number of days from the current date exceeds the upper limit of the general storage number of days.
As can be seen from the above description, by setting the general upper limit of the reserved days, the program scans the chat records at the preset time every day, and deletes the chat records with the chat date whose number of days from the current date exceeds the general upper limit of the reserved days, so as to further perform more reasonable control on the chat records.
Furthermore, the exclusive chat record management parameter also comprises a resource priority deletion item;
step S4 specifically includes:
s41, judging whether the total size of the chat records of the specified chat window is larger than the upper limit of the storage size, and if the total size of the chat records is larger than the upper limit of the storage size, deleting resource files contained in the chat records, wherein the resource files comprise pictures, videos and other files in non-text forms;
s42, judging whether the total size of the chat records of the specified chat window is larger than the upper limit of the storage size, and if the total size of the chat records is still larger than the upper limit of the storage size, deleting the chat records of the day with the date farthest from the current date;
step S5 specifically includes:
and repeatedly executing the step S42 until the total size of the chat records of the specified chat window is smaller than the upper limit of the saving size.
As can be seen from the above description, the user can also set the chat records of the designated window to preferentially delete the resource files in the chat records through the resource priority deletion item in the dedicated chat record management parameter, where the resource files include pictures, videos, and the like, so as to perform more reasonable control on the total size of the chat records of the designated window.
Further, the universal chat record management parameter also comprises a universal resource priority deletion item;
step S9 specifically includes:
s91, judging whether the total size of the chat records of the chat window is larger than the upper limit of the general save size, and if so, deleting resource files contained in the chat records, wherein the resource files comprise pictures, videos and other files in non-text forms;
s92, judging whether the total size of the chat records of the chat window is larger than the upper limit of the general preservation size, and if the total size of the chat records is still larger than the upper limit of the preservation size, deleting the chat records of the day with the date farthest from the current date;
step S10 specifically includes:
and repeatedly executing the step S92 until the total size of the chat records of the chat window is smaller than the upper limit of the storage size.
According to the above description, the user can set the priority deletion resource file for the windows not configured with the exclusive chat record management parameter through the universal resource priority deletion item in the universal chat record management parameter, and further perform more reasonable control on the chat record.
Referring to fig. 1 and fig. 3, a first embodiment of the present invention is:
a management method for occupying storage space by chat software comprises the following steps:
s1, storing the copy file of the chat record according to the chat window number and the chat date;
in this embodiment, the chat records are stored in duplicate files according to the chat window number and the chat date, each file is named in a format of "chat _ id + '__+ date +' _+ id", and in other embodiments, naming can be distinguished in other file formats.
S2, receiving a first parameter configuration request of a user, configuring exclusive chat record management parameters of a specified chat window according to the first parameter configuration request, and monitoring chat software, wherein the exclusive chat record management parameters comprise a storage size upper limit and a storage day upper limit;
s3, when the chat software is monitored to write the chat records of the specified chat window, the step S4 is carried out; s4, judging whether the total size of the chat records of the specified chat window is larger than the upper limit of the storage size, and deleting the chat records of the day with the date farthest from the current date if the total size of the chat records is larger than the upper limit of the storage size;
s5, repeating the step S4 until the total size of the chat records in the specified chat window is smaller than the upper limit of the storage size;
wherein, the exclusive chat record management parameter also comprises a resource priority deleting item;
the step S4 specifically includes:
s41, judging whether the resource priority deletion item is opened, if not, entering step S42, otherwise, judging whether the total size of the chat records of the specified chat window is larger than the upper limit of the storage size, and if the total size of the chat records is larger than the upper limit of the storage size, deleting the resource files contained in the chat records, wherein the resource files comprise pictures, videos and other non-text files;
s42, judging whether the total size of the chat records of the specified chat window is larger than the upper limit of the storage size, and if the total size of the chat records is still larger than the upper limit of the storage size, deleting the chat records of the day with the date farthest from the current date;
the step S5 specifically includes:
and repeatedly executing the step S42 until the total size of the chat records of the specified chat window is smaller than the upper limit of the saving size.
In this embodiment, the chat window includes a window a, a window B, a window C and a window D, where the window a and the window B are designated chat windows, at this time, according to the setting of the user, the upper limit of the storage size and the upper limit of the storage days of the window a are respectively 20M and 10 days, the upper limit of the storage size and the upper limit of the storage days of the window B are respectively 10M and 7 days, and a resource priority deletion item is opened, and the user of the window C and the window D does not perform the preparation of the dedicated chat record management parameter.
When a user chats with others through the window A, the program monitors that the chat records of the window A are added or written, and judges whether the total size of the chat record files of the window A is larger than 20M and whether a resource priority deletion item is opened or not, in the embodiment, the total size of the chat record files after the window A writes the chat records is 21M and larger than the preset 20M, and the resource priority deletion item is not opened, and the program finds that the chat record date of the window A farthest from the current time is 9 days ago, so that the chat records before 9 days are deleted, and judges the total size of the chat record files again, at this moment, the total size of the chat records is 19M and smaller than the preset upper limit of the storage size 20M, and therefore, the chat records are not deleted.
Meanwhile, the user chats with other people through the chat window B, the program monitors that the chat records of the window B are added or written, and judges whether the total size of the chat record files of the window B is larger than 10M or not, and whether a resource priority deletion item is opened or not, in the embodiment, the total size of the chat record files after the window B writes the chat records is 17M, is larger than 10M and opens the resource priority deletion item, so that the program deletes pictures and video files contained in the chat records, and the total size of the chat record files is 3M and smaller than 10M, and therefore the deletion of character records is not needed.
S6, scanning the chat records of the specified chat window at preset time every day, and deleting the chat records of which the number of days from the current date exceeds the upper limit of the number of storage days;
in this embodiment, the chat records of the window a and the window B are scanned at 0 time every day, the chat records of the window a that are 10 days or more away from the current date are deleted, and the chat records of the window B that are 7 days or more away from the current date are deleted.
S7, receiving a second parameter configuration request of a user, configuring general chat record management parameters for the chat software according to the second parameter configuration request, and monitoring the chat software, wherein the general chat record management parameters comprise a general storage size upper limit;
s8, when it is monitored that the chat software writes the chat records and the chat records belong to the chat window which is not configured with the exclusive chat record management parameters, the step S9 is executed;
s9, judging whether the total size of the chat records of the chat window is larger than the upper limit of the general preservation size, and if the total size of the chat records is larger than the upper limit of the general preservation size, deleting the chat records of the day with the date farthest from the current date;
s10, repeating the step S9 until the total size of the chat records in the chat window is smaller than the upper limit of the general preservation size;
wherein, the universal chatting record management parameter also comprises a universal resource priority deleting item;
the step S9 specifically includes:
s91, judging whether the universal resource priority deleting item is opened or not, if not, entering step S92, otherwise, judging whether the total size of the chat records of the chat window is larger than the upper limit of the universal save size, and if the total size of the chat records is larger than the upper limit of the universal save size, deleting resource files contained in the chat records, wherein the resource files comprise pictures, videos and other files in non-text forms;
s92, judging whether the total size of the chat records of the chat window is larger than the upper limit of the general preservation size, and if the total size of the chat records is still larger than the upper limit of the preservation size, deleting the chat records of the day with the date farthest from the current date;
the step S10 specifically includes:
repeatedly executing the step S92 until the total size of the chat records in the chat window is smaller than the upper limit of the storage size;
wherein, the general chat record management parameters further include a general upper limit of storage days, and further include:
s11, scanning all the chat records of the chat window which are not configured with the exclusive chat record management parameters at preset time every day, and deleting the chat records of which the number of days from the current date exceeds the upper limit of the general storage number of days.
In this embodiment, the user does not prepare the dedicated chat record management parameters for the C window and the D window, but the user configures the general chat record management parameters, where the upper limit of the general save size is 50M, the upper limit of the general save days is 21 days, and opens the general resource priority deletion item. When the program monitors that the chat records are written into the window C, whether the total size of the chat record files of the window C exceeds 50M is judged. In the present application, the total size of the chat log file in the window C after the chat log is written in is 36M, and therefore, no operation is performed. When the program monitors that the chat records are written into the D window, the program judges whether the total size of the chat record files of the D window exceeds 50M. In the application, the total size of the chat record file of the window D after the chat record is written in is 52M and is larger than the upper limit of the general storage size, and due to the fact that the general resource priority deleting item is opened, the resource files such as pictures and videos in the chat record of the window D are deleted, the total size of the chat record file after the chat record is deleted is 51M and is still larger than the upper limit of the general storage size, so that the chat record which is farthest from the current date is the chat record before 18 days, the chat record before 18 days is deleted again, and at the moment, the total size of the chat record file of the window D is 49M and is smaller than 50M, and therefore, the operation is not carried out.
At 0 time per day, the chat logs in windows C and D are scanned, and the chat logs with the recording dates more than 21 days away from the current date are deleted. The chat records in the C window 22 days away from the current date are deleted, while the chat records in the D window only 17 days away from the current date are deleted.
Referring to fig. 2, the second embodiment of the present invention is:
a management terminal 1 for occupying storage space by chat software comprises a processor 2, a memory 3 and a computer program stored on the memory 3 and capable of running on the processor 2, wherein the processor 2 implements the steps in the first embodiment when executing the computer program.
In summary, according to the method and the terminal for occupying the storage space by the chat software provided by the invention, the chat records of the chat window specified by the user are subjected to customized management according to the configuration of the user, and the content of the longest chat record can be gradually deleted according to the user requirement, so that the file size of the chat records is controlled under the upper limit of the size allowed by the user, and the chat records exceeding the upper limit of the number of storage days are deleted, thereby effectively and reasonably managing and controlling the total size of the chat records; and the universal chat record management parameters are also arranged to control all other chat windows which are not provided with exclusive chat record management parameters according to a unified standard, so that the management is more convenient and reasonable, and the resource priority deletion items are also arranged, so that file resources such as pictures, videos and the like can be preferentially deleted, and the management of the chat records is more reasonable.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all equivalent changes made by using the contents of the present specification and the drawings, or applied directly or indirectly to the related technical fields, are included in the scope of the present invention.

Claims (10)

1. A management method for occupying storage space by chat software is characterized by comprising the following steps:
s1, storing the copy file of the chat record according to the chat window number and the chat date;
s2, receiving a first parameter configuration request of a user, configuring exclusive chat record management parameters of a specified chat window according to the first parameter configuration request, and monitoring chat software, wherein the exclusive chat record management parameters comprise a storage size upper limit and a storage day upper limit;
s3, when the chat software is monitored to write the chat records of the specified chat window, the step S4 is carried out;
s4, judging whether the total size of the chat records of the specified chat window is larger than the upper limit of the storage size, and deleting the chat records of the day with the date farthest from the current date if the total size of the chat records is larger than the upper limit of the storage size;
s5, repeating the step S4 until the total size of the chat records in the specified chat window is smaller than the upper limit of the storage size;
and S6, scanning the chat records of the specified chat window at preset time every day, and deleting the chat records of which the number of days from the current date exceeds the upper limit of the number of storage days.
2. The method for managing storage space occupied by chat software according to claim 1, further comprising:
s7, receiving a second parameter configuration request of a user, configuring general chat record management parameters for the chat software according to the second parameter configuration request, and monitoring the chat software, wherein the general chat record management parameters comprise a general storage size upper limit;
s8, when it is monitored that the chat software writes the chat records and the chat records belong to the chat window which is not configured with the exclusive chat record management parameters, the step S9 is executed;
s9, judging whether the total size of the chat records of the chat window is larger than the upper limit of the general preservation size, and if the total size of the chat records is larger than the upper limit of the general preservation size, deleting the chat records of the day with the date farthest from the current date;
and S10, repeating the step S9 until the total size of the chat records in the chat window is smaller than the upper limit of the general preservation size.
3. The method as claimed in claim 2, wherein the general chat history management parameters further include a general upper limit of days to save, and further comprising:
s11, scanning all the chat records of the chat window which are not configured with the exclusive chat record management parameters at preset time every day, and deleting the chat records of which the number of days from the current date exceeds the upper limit of the general storage number of days.
4. The method as claimed in claim 1, wherein the dedicated chat log management parameters further include a resource priority deletion item;
the step S4 specifically includes:
s41, judging whether the resource priority deletion item is opened, if not, entering step S42, otherwise, judging whether the total size of the chat records of the specified chat window is larger than the upper limit of the storage size, and if the total size of the chat records is larger than the upper limit of the storage size, deleting the resource files contained in the chat records, wherein the resource files comprise pictures, videos and other non-text files;
s42, judging whether the total size of the chat records of the specified chat window is larger than the upper limit of the storage size, and if the total size of the chat records is still larger than the upper limit of the storage size, deleting the chat records of the day with the date farthest from the current date;
the step S5 specifically includes:
and repeatedly executing the step S42 until the total size of the chat records of the specified chat window is smaller than the upper limit of the saving size.
5. The method as claimed in claim 2, wherein the universal chat log management parameters further include a universal resource priority deletion item;
the step S9 specifically includes:
s91, judging whether the universal resource priority deleting item is opened or not, if not, entering step S92, otherwise, judging whether the total size of the chat records of the chat window is larger than the upper limit of the universal save size, and if the total size of the chat records is larger than the upper limit of the universal save size, deleting resource files contained in the chat records, wherein the resource files comprise pictures, videos and other files in non-text forms;
s92, judging whether the total size of the chat records of the chat window is larger than the upper limit of the general preservation size, and if the total size of the chat records is still larger than the upper limit of the preservation size, deleting the chat records of the day with the date farthest from the current date;
the step S10 specifically includes:
and repeatedly executing the step S92 until the total size of the chat records of the chat window is smaller than the upper limit of the storage size.
6. A management terminal for occupying storage space by chat software, comprising a processor, a memory and a computer program stored on the memory and operable on the processor, wherein the processor implements the following steps when executing the computer program:
s1, storing the copy file of the chat record according to the chat window number and the chat date;
s2, receiving a first parameter configuration request of a user, configuring exclusive chat record management parameters of a specified chat window according to the first parameter configuration request, and monitoring chat software, wherein the exclusive chat record management parameters comprise a storage size upper limit and a storage day upper limit;
s3, when the chat software is monitored to write the chat records of the specified chat window, the step S4 is carried out;
s4, judging whether the total size of the chat records of the specified chat window is larger than the upper limit of the storage size, and deleting the chat records of the day with the date farthest from the current date if the total size of the chat records is larger than the upper limit of the storage size;
s5, repeating the step S4 until the total size of the chat records in the specified chat window is smaller than the upper limit of the storage size;
and S6, scanning the chat records of the specified chat window at preset time every day, and deleting the chat records of which the number of days from the current date exceeds the upper limit of the number of storage days.
7. The terminal for managing storage space occupied by chat software according to claim 6, wherein the processor when executing the computer program further comprises:
s7, receiving a second parameter configuration request of a user, configuring general chat record management parameters for the chat software according to the second parameter configuration request, and monitoring the chat software, wherein the general chat record management parameters comprise a general storage size upper limit;
s8, when it is monitored that the chat software writes the chat records and the chat records belong to the chat window which is not configured with the exclusive chat record management parameters, the step S9 is executed;
s9, judging whether the total size of the chat records of the chat window is larger than the upper limit of the general preservation size, and if the total size of the chat records is larger than the upper limit of the general preservation size, deleting the chat records of the day with the date farthest from the current date;
and S10, repeating the step S9 until the total size of the chat records in the chat window is smaller than the upper limit of the general preservation size.
8. The management terminal for occupying storage space by chat software according to claim 7, wherein the universal chat log management parameters further include a universal upper limit of days to save;
further comprising:
s11, scanning all the chat records of the chat window which are not configured with the exclusive chat record management parameters at preset time every day, and deleting the chat records of which the number of days from the current date exceeds the upper limit of the general storage number of days.
9. The management terminal for occupying storage space by chat software according to claim 6, wherein the dedicated chat log management parameter further comprises a resource priority deletion item;
step S4 specifically includes:
s41, judging whether the total size of the chat records of the specified chat window is larger than the upper limit of the storage size, and if the total size of the chat records is larger than the upper limit of the storage size, deleting resource files contained in the chat records, wherein the resource files comprise pictures, videos and other files in non-text forms;
s42, judging whether the total size of the chat records of the specified chat window is larger than the upper limit of the storage size, and if the total size of the chat records is still larger than the upper limit of the storage size, deleting the chat records of the day with the date farthest from the current date;
step S5 specifically includes:
and repeatedly executing the step S42 until the total size of the chat records of the specified chat window is smaller than the upper limit of the saving size.
10. The management terminal for occupying storage space by chat software according to claim 7, wherein the universal chat log management parameter further includes a universal resource priority deletion item;
step S9 specifically includes:
s91, judging whether the total size of the chat records of the chat window is larger than the upper limit of the general save size, and if so, deleting resource files contained in the chat records, wherein the resource files comprise pictures, videos and other files in non-text forms;
s92, judging whether the total size of the chat records of the chat window is larger than the upper limit of the general preservation size, and if the total size of the chat records is still larger than the upper limit of the preservation size, deleting the chat records of the day with the date farthest from the current date;
step S10 specifically includes:
and repeatedly executing the step S92 until the total size of the chat records of the chat window is smaller than the upper limit of the storage size.
CN202110043298.4A 2021-01-13 2021-01-13 Chat software occupied storage space management method and terminal Active CN112732642B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110043298.4A CN112732642B (en) 2021-01-13 2021-01-13 Chat software occupied storage space management method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110043298.4A CN112732642B (en) 2021-01-13 2021-01-13 Chat software occupied storage space management method and terminal

Publications (2)

Publication Number Publication Date
CN112732642A true CN112732642A (en) 2021-04-30
CN112732642B CN112732642B (en) 2023-05-23

Family

ID=75591522

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110043298.4A Active CN112732642B (en) 2021-01-13 2021-01-13 Chat software occupied storage space management method and terminal

Country Status (1)

Country Link
CN (1) CN112732642B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104679381A (en) * 2013-11-29 2015-06-03 腾讯科技(深圳)有限公司 Method and device for switching chat box
KR101716874B1 (en) * 2016-07-28 2017-03-17 주식회사 지앤톡 Communication terminal capable of live chat and chatting application
CN107168787A (en) * 2017-07-03 2017-09-15 赵桂银 A kind of running of mobile terminal performance improvement method and apparatus
CN111224859A (en) * 2018-11-26 2020-06-02 奇酷互联网络科技(深圳)有限公司 Method for deleting chat records, computer equipment and storage medium
CN111597158A (en) * 2020-04-23 2020-08-28 远光软件股份有限公司 Log file rolling method and device, storage medium and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104679381A (en) * 2013-11-29 2015-06-03 腾讯科技(深圳)有限公司 Method and device for switching chat box
KR101716874B1 (en) * 2016-07-28 2017-03-17 주식회사 지앤톡 Communication terminal capable of live chat and chatting application
CN107168787A (en) * 2017-07-03 2017-09-15 赵桂银 A kind of running of mobile terminal performance improvement method and apparatus
CN111224859A (en) * 2018-11-26 2020-06-02 奇酷互联网络科技(深圳)有限公司 Method for deleting chat records, computer equipment and storage medium
CN111597158A (en) * 2020-04-23 2020-08-28 远光软件股份有限公司 Log file rolling method and device, storage medium and terminal

Also Published As

Publication number Publication date
CN112732642B (en) 2023-05-23

Similar Documents

Publication Publication Date Title
US20180152515A1 (en) File Storage Method and Apparatus for Instant Communication Messages
US9253130B2 (en) Systems and methods for supporting social productivity using a dashboard
US9110909B2 (en) File level hierarchical storage management system, method, and apparatus
US9286307B2 (en) Document management apparatus improved in efficiency of deletion of files, method of controlling the same, and storage medium
US20090177704A1 (en) Retention policy tags for data item expiration
US9552369B2 (en) Document management systems and methods
KR100747466B1 (en) A device management client and device management method using nodes having additional properties
CN105847447A (en) Message push method and device
KR20140010988A (en) Method, sharing platform, and system for sharing image-editing action
TW201820903A (en) Method and device for processing chat log of real-time chat tool
CN104125135B (en) The management method of a kind of instant messaging application chat record and terminal
CN114995716B (en) Operation method of android application related file on desktop system
CN100363890C (en) System and method for synchronously renewing file of remote computer
CN107835986A (en) The data manipulation method and electronic equipment of a kind of electronic equipment
WO2017174013A1 (en) Data storage management method and apparatus, and data storage system
CN103577417B (en) The method and apparatus for clearing up desktop
US20150020167A1 (en) System and method for managing files
CN109359092A (en) File management method, desktop display method, device, terminal and medium
WO2020005633A1 (en) Download management
US20030105780A1 (en) File system, control method, and program
CN112732642B (en) Chat software occupied storage space management method and terminal
US20020065796A1 (en) Web based automated office procedure system
JP5652457B2 (en) Information processing apparatus, web mail system, control method and program.
CN113254404B (en) File processing method and device
CN109977381B (en) H5 interactive resource access editing and playing tool based on Office Addin

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