You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Aaron Digulla (Created) (JIRA)" <ji...@apache.org> on 2012/03/26 13:58:27 UTC
[jira] [Created] (IO-316) New API: BackupFileWriter
New API: BackupFileWriter
-------------------------
Key: IO-316
URL: https://issues.apache.org/jira/browse/IO-316
Project: Commons IO
Issue Type: Bug
Components: Streams/Writers
Affects Versions: 2.1
Reporter: Aaron Digulla
Priority: Minor
Add the new file based I/O class {{BackupFileWriter}} with the following properties:
- Saves the file to a temporary name
- Creates backup of existing file on {{close()}}
- Renames temp file to desired name on {{close()}}
The backup strategy (number of backups, backup file name) should be pluggable.
There should also be a hook to compare the temporary and the existing file and do the rename only when they are different. The default hook should always replace the file.
It should also be possible to override the temporary file name (including the path, so the temp file can be in the same directory or a different one or even on a different disk).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (IO-316) New API: BackupFileWriter
Posted by "Sebb (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IO-316?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sebb updated IO-316:
--------------------
Issue Type: New Feature (was: Bug)
> New API: BackupFileWriter
> -------------------------
>
> Key: IO-316
> URL: https://issues.apache.org/jira/browse/IO-316
> Project: Commons IO
> Issue Type: New Feature
> Components: Streams/Writers
> Affects Versions: 2.1
> Reporter: Aaron Digulla
> Priority: Minor
>
> Add the new file based I/O class {{BackupFileWriter}} with the following properties:
> - Saves the file to a temporary name
> - Creates backup of existing file on {{close()}}
> - Renames temp file to desired name on {{close()}}
> The backup strategy (number of backups, backup file name) should be pluggable.
> There should also be a hook to compare the temporary and the existing file and do the rename only when they are different. The default hook should always replace the file.
> It should also be possible to override the temporary file name (including the path, so the temp file can be in the same directory or a different one or even on a different disk).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira