aboutsummaryrefslogtreecommitdiffstats
path: root/brutha/file.py
diff options
context:
space:
mode:
Diffstat (limited to 'brutha/file.py')
-rw-r--r--brutha/file.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/brutha/file.py b/brutha/file.py
index 0191cf1..1ccac12 100644
--- a/brutha/file.py
+++ b/brutha/file.py
@@ -116,9 +116,15 @@ class LossyFile(File):
return commands
def copy(self, commands):
+ if self.options['hardlink']:
+ option = ' -l'
+ elif self.options['reflink']:
+ option = ' --reflink=always'
+ else:
+ option = ''
if not self.sample_ok():
raise NotAllowed("Sample rate or bit depth too high")
- commands.append('cp %s %s' % (escape(self.src()), escape(self.dest())))
+ commands.append('cp%s %s %s' % (option, escape(self.src()), escape(self.dest())))
def sample_ok(self):
if not self.options['lossycheck']: