From da2cce92a7eed706d04d6cbe778fd1bf32f18eeb Mon Sep 17 00:00:00 2001 From: Julien Valroff Date: Sun, 2 Oct 2011 07:08:31 +0200 Subject: Imported Upstream version 0.4.2 --- rapid/device.py | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'rapid/device.py') diff --git a/rapid/device.py b/rapid/device.py index dcfdf94..423acdd 100644 --- a/rapid/device.py +++ b/rapid/device.py @@ -156,21 +156,5 @@ def is_DCIM_device(path): test_path = os.path.join(path, "DCIM") return utilities.is_directory(test_path) -def is_backup_media(path, identifiers, writeable=True): - """ Test to see if path is used as a backup medium for storing photos or videos - - Identifiers is expected to be a list of folder names to check to see - if the path is a backup path. Only one of them needs to be present - for the path to be considered a backup medium. - - If writeable is True, the directory must be writeable by the user """ - suitable = False - - for identifier in identifiers: - if os.path.isdir(os.path.join(path, identifier)): - if writeable: - suitable = os.access(os.path.join(path, identifier), os.W_OK) - else: - suitable = True - return suitable + -- cgit v1.2.3