punchware / JIO-Library

Automatically exported from code.google.com/p/gravity-jio
4 stars 4 forks source link

Feature 1.2- Process: Cleanup diskspace #23

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
1) What the feature does?
- Function to cleanup diskspace based on the provided path.

2) How the feature being implemented?
- 2 compulsory input:
  - path
  - ext
  - date  

3) Structure of this feature?
- diskCleanUp(path, ext, date);
- Should have a try catch block.
- If the folder/path are not existed, notify by returning an exception message.
- In "date" value input: "0" to disabled, enabled by inserting date values.
- In "ext" value input: "0" to disabled, enabled by inserting ext values.
- If "ext" input are valid, system only delete files equal to provided 
extension values only.
- If both only date values are valid, system will delete only folder that 
associate with provided date.
- If both values "date" and "ext" are valid, system only delete files associate 
with provided date and extension values only.
- Disabled date and ext input will trigger procedure to delete all files and 
folders in the designated path.

4) Weightage of importance (low/medium/high)
- High

Original issue reported on code.google.com by gravitydevelopment on 10 Nov 2013 at 1:38

GoogleCodeExporter commented 9 years ago
This core solution features are depended on below core function procedure:
1- Issue 21:Feature 1.1- Function: List files (all file, or by file extension, 
or by 
   date of file) in the designated folder
2- Issue 22:Feature 1.1- Function: List folders (all file, or by file 
extension, or by 
   date of file) in the designated path.
3- deleteFile
4- deleteFolder
5- check file existence
6- check folder existence

Original comment by gravitydevelopment on 10 Nov 2013 at 1:42

GoogleCodeExporter commented 9 years ago

Original comment by gravitydevelopment on 10 Nov 2013 at 4:41

gravitydevelopment commented 9 years ago

This features depend on issues no #21 and #22.