cape.pyover.manage
: Manage pyOver case folders¶
This module is a derivative of the main solution folder management module
cape.manage
. It provides OVERFLOW-specific versions of the three
top-level functions, which each correspond to a primary command-line option.
Function
Command-line
--clean
--archive
--skeleton
The OVERFLOW-specific versions of these commands use the function
pyOver.options.Archive.auto_Archive()
, which apply the default settings
appropriate to pyOver, and then call the generic version of the function with
the same name from cape.manage
. In addition, this module sets
# Subdirectories fsub = []
so the functions do not look inside any subfolders while archiving.
The --unarchive
command does not require any specific customizations for
OVERFLOW, and the generic version of cape.manage.UnarchiveFolder()
is
just called directly.
- See also:
cape.options.Archive
- cape.pyover.manage.ArchiveFolder(opts, phantom=False)¶
Archive a folder to a backup location and clean up nonessential files
- Call:
>>> pyOver.manage.ArchiveFolder(opts, phantom=False)
- Inputs:
- opts:
cape.options.Options
Options interface including management/archive interface
- phantom:
True
| {False
} Write actions to
archive.log
; only delete ifFalse
- opts:
- Versions:
2016-12-09
@ddalle
: First version2017-12-15
@ddalle
: Added phantom option
- cape.pyover.manage.CleanFolder(opts, phantom=False)¶
Delete files before archiving and regardless of status
- Call:
>>> pyOver.manage.CleanFolder(opts, phantom=False)
- Inputs:
- opts:
cape.options.Options
Options interface including management/archive interface
- phantom:
True
| {False
} Write actions to
archive.log
; only delete ifFalse
- opts:
- Versions:
2017-03-10
@ddalle
: First version2017-12-15
@ddalle
: Added phantom option
- cape.pyover.manage.SkeletonFolder(opts, phantom=False)¶
Archive a folder to a backup location and clean up nonessential files
- Call:
>>> pyOver.manage.SkeletonFolder(opts, phantom=False)
- Inputs:
- opts:
cape.options.Options
Options interface including management/archive interface
- phantom:
True
| {False
} Write actions to
archive.log
; only delete ifFalse
- opts:
- Versions:
2017-12-14
@ddalle
: First version