projects
/
id3fs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a15e805
)
fix paths on add
author
Ian Beckwith
<ianb@erislabs.net>
Fri, 15 Oct 2010 01:33:28 +0000
(
02:33
+0100)
committer
Ian Beckwith
<ianb@erislabs.net>
Fri, 15 Oct 2010 01:33:28 +0000
(
02:33
+0100)
lib/ID3FS/DB.pm
patch
|
blob
|
history
diff --git
a/lib/ID3FS/DB.pm
b/lib/ID3FS/DB.pm
index
c1d6cd6
..
385cacd
100644
(file)
--- a/
lib/ID3FS/DB.pm
+++ b/
lib/ID3FS/DB.pm
@@
-223,7
+223,7
@@
sub add
{
my($self,$path)=@_;
my $relpath=Cwd::abs_path($path);
{
my($self,$path)=@_;
my $relpath=Cwd::abs_path($path);
- $relpath =~ s/^\Q$self->{base}\E\/?//;
+ $relpath =~ s/^\Q$self->{
abs
base}\E\/?//;
my($filepart,$pathpart);
if($relpath !~ /\//)
{
my($filepart,$pathpart);
if($relpath !~ /\//)
{