Using directory separator ("/") inside conditional expression raises PatternSyntaxError
Bug #387470 reported by
Michael Helmling
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pytagsfs |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
Hi,
if you try to use "conditional subdirectories", e.g.:
pytagsfs -o format=
this throws a syntax error. Of course, in easy examples one can circumvent this by putting the / outside the condition:
pytagsfs -o ro,format=
since UNIX (and probably windows, too?) will ignore subsequent slashes, but in more complex scenarios this is not an option. I would have loved to submit a patch to fix this, but I have no chance in understanding how subspat.py works. ;-)
Regards,
Michael
Changed in pytagsfs: | |
assignee: | Forest Bond (forest-bond) → nobody |
To post a comment you must log in.
Hi,
There's probably a bit more to this than you might think. The complications all come from renames; pytagsfs needs to know which tag field to update. With paths that vary by number of directory segments, this gets trickier. It seems possible, but it is not implemented now.
-Forest