Revision af5ebcb1 lib/backend.py
b/lib/backend.py | ||
---|---|---|
1690 | 1690 |
_CleanDirectory(constants.JOB_QUEUE_ARCHIVE_DIR) |
1691 | 1691 |
|
1692 | 1692 |
|
1693 |
def JobQueueRename(old, new): |
|
1694 |
"""Renames a job queue file. |
|
1695 |
|
|
1696 |
""" |
|
1697 |
if not (_IsJobQueueFile(old) and _IsJobQueueFile(new)): |
|
1698 |
return False |
|
1699 |
|
|
1700 |
os.rename(old, new) |
|
1701 |
|
|
1702 |
return True |
|
1703 |
|
|
1704 |
|
|
1693 | 1705 |
def CloseBlockDevices(disks): |
1694 | 1706 |
"""Closes the given block devices. |
1695 | 1707 |
|
Also available in: Unified diff