Project

General

Profile

Bug #892

Does not follow symlinks when adding directory

Added by Simon Bruder 6 days ago. Updated 4 days ago.

Status:
New
Priority:
Minor
Assignee:
-
Category:
-
Target version:
Start date:
June 10, 2019
Due date:
% Done:

0%

Estimated time:
Affects version:

Description

I started using git-annex for managing my music collection, which uses symlinks.

When I add a single file to audacious (audacious artist/album/file.flac), it opens the file flawlessly, but when I try to add a directory (audacious artist/album) it fails (“No files found.”).

Steps to reproduce:
  • mkdir -p tmp/subdir
  • cd tmp
  • Copy an audio file in this directory and name it file.flac
  • audacious . → replaces audacious queue with that file
  • ln -s ../file.flac subdir (create symlink to file.flac in subdirectory)
  • audacious subdir/file.flac → also works
  • audacious subdir → fails with (“No files found.”)

My audacious version: 3.10.1 (debian buster)

audacious.log (11.9 KB) audacious.log Simon Bruder, June 11, 2019 15:35

History

#1 Updated by Michael Schwendt 5 days ago

Your steps are odd and confusing. If you copy file.flac into subdir, in which directory do you run the ln command?

Anyway, for sake of reproducibility, show full "ls -lR" output from the top directory and run audacious with option -V for verbose output. What do you get then for your testcase?

#2 Updated by Simon Bruder 5 days ago

Sorry, I may have been unclear: I created the temporary directory and subdirectory in one shot with mkdir -p to save one step (but only cd’ed into tmp. I copied file.flac in the tmp directory (the current working directory).

ls -lR:

.:
total 4684
-rw-r--r-- 1 simon simon 4790753 Jun 11 15:30 file.flac
drwxr-xr-x 2 simon simon    4096 Jun 11 15:30 subdir

./subdir:
total 0
lrwxrwxrwx 1 simon simon 12 Jun 11 15:30 file.flac -> ../file.flac

I attached the output of audacious -V subdir

#3 Updated by John Lindgren 4 days ago

This is currently the expected behavior. Adding a directory adds only regular files (and no playlist files), to guard against infinite recursion.

We could probably relax the rule and allow adding symlinks to regular files (but still no symlinks to directories).

#4 Updated by Simon Bruder 4 days ago

That would be helpful, git-annex only creates symlinks for files and not for directories.

Also available in: Atom PDF