summaryrefslogtreecommitdiff
path: root/rapid/device.py
diff options
context:
space:
mode:
authorJulien Valroff <julien@kirya.net>2011-10-02 07:08:32 +0200
committerJulien Valroff <julien@kirya.net>2011-10-02 07:08:32 +0200
commit4c40bf847c184b9cdd8f9fab8b582ff031b84725 (patch)
tree89d7abc84d2debe8043135bade79b1c3f9ad2471 /rapid/device.py
parenteecc3859c40ec5d9b1a0b06a88dd0ff6df0096f7 (diff)
parentda2cce92a7eed706d04d6cbe778fd1bf32f18eeb (diff)
Merge commit 'upstream/0.4.2'
Diffstat (limited to 'rapid/device.py')
-rw-r--r--rapid/device.py18
1 files changed, 1 insertions, 17 deletions
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
+