Explicitly: what exact file names do you want to exclude?
Generally: you can use a regex to filter in the good ones or filter out the bad ones.
(this answer is not much help because there are no details in your question)
#!/usr/bin/perl
%exclude = map {$_ => 1} qw(Music Old OLD 3d);
$d = "/data";
opendir(DIR, $d);
foreach my $file (readdir(DIR)) {
print "Version: $file\n" if not defined $exclude{$file};
}
closedir(DIR);