return $file;
}
+sub base_dir { return shift->{base}; }
+
sub create
{
my($self,$name)=@_;
}
}
+sub analyze
+{
+ my $self=shift;
+ $self->cmd("ANALYZE");
+}
+
sub enable_foreign_keys
{
my $self=shift;
{
($pathpart, $filepart) = ($relpath =~ /(.*)\/(.*)/);
}
- my $file=ID3FS::AudioFile->new($path);
+ my $file=ID3FS::AudioFile->new($path, $self->{me});
return unless(defined($file));
my $artist=$file->artist();
my $album=$file->album();
{
my ($self, $dir)=@_;
$dir=~s/^$self->{base}\/?//;
-# print "Munged dir: $dir\n";
my $sql=("SELECT files.name FROM files\n" .
"INNER JOIN paths ON files.paths_id=paths.id\n" .
"WHERE paths.name=?\n");
{
my($path, $id)=@$pathpair;
my $fullpath="$self->{absbase}/$path";
-# print "PRUNING PATH $fullpath: ";
unless(-d $fullpath)
{
push(@ids, $id)