backup: get_fisk_usage is now in storage.file

This commit is contained in:
Marek Marczykowski-Górecki 2016-05-21 03:31:29 +02:00 committed by Wojtek Porczyk
parent ff78b26f66
commit 2909d252d6

View File

@ -41,6 +41,7 @@ from multiprocessing import Queue, Process
import qubes
import qubes.core2migration
import qubes.storage
import qubes.storage.file
QUEUE_ERROR = "ERROR"
@ -214,7 +215,7 @@ class SendWorker(Process):
class Backup(object):
class FileToBackup(object):
def __init__(self, file_path, subdir=None):
sz = qubes.storage.get_disk_usage(file_path)
sz = qubes.storage.file.get_disk_usage(file_path)
if subdir is None:
abs_file_path = os.path.abspath(file_path)