For the gphoto:// filesystem I have this which creates the link G7 -> Canon PowerShot G7 (PTP mode) in the root of the gphoto:// filesystem.
<user-overlay-links>
<link-by-regex>
<vlink>
<match>^gphoto:[/]+$</match>
<target>Canon PowerShot G7 (PTP mode)</target>
<link-name>G7</link-name>
</vlink>
...
...
<vlink>
<match>^gphoto:[/]+$</match>
<target>gphoto://G7/store_00010001/DCIM/102CANON</target>
<link-name>latest</link-name>
</vlink>
...
It seemed like a good idea to abstract this out of any specific filesystem like upnp and gphoto so virtual links can be made anywhere. In particular, for upnp a/v devices sometimes the server likes to use an insanely long name for itself, with virtual soft links, the client machine can give the server a nice short name of it's choosing.
No comments:
Post a Comment