Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #181843

Re: Automatic updating links?

From davidson@freevolt.org
Newsgroups linux.debian.user
Subject Re: Automatic updating links?
Date 2017-06-06 20:50 +0200
Message-ID <tPrId-45h-13@gated-at.bofh.it> (permalink)
References <tPkQp-89v-1@gated-at.bofh.it> <tPlWb-lw-45@gated-at.bofh.it> <tPqM9-3tE-11@gated-at.bofh.it> <tPqVP-3xj-1@gated-at.bofh.it> <tPrfc-3TW-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, 6 Jun 2017, Rodolfo Medina wrote:
> Greg Wooledge <wooledg@eeg.ccf.org> writes:
>
>> On Tue, Jun 06, 2017 at 06:41:03PM +0100, Rodolfo Medina wrote:
>>> But, I
>>> also need that, when renaming the target file, the link would automatically
>>> change its name so that it keeps equal to the target's name...  Is this
>>> possibile?

Totally possible. Write a library of functions with functions that
simultaneously

   1. perform the hard link manipulations you need

   2. update a database that tracks, for each media file, its
      linked-locations.

Then just use your new functions to manipulate your a/v media files.

Problem solved.

>> No.  Not without exhaustively searching the file system to find the
>> other links and rename them, and that would have to be something you
>> do manually, *not* automatically triggered by a rename.
>>
>> What are you actually trying to do?
>
> I'm making a musical mp3s library.  So I have, say, the following directory
> tree:

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Automatic updating links? Rodolfo Medina <rodolfo.medina@gmail.com> - 2017-06-06 13:30 +0200
  Re: Automatic updating links? <tomas@tuxteam.de> - 2017-06-06 13:50 +0200
  Re: Automatic updating links? Darac Marjal <mailinglist@darac.org.uk> - 2017-06-06 14:30 +0200
  Re: Automatic updating links? Greg Wooledge <wooledg@eeg.ccf.org> - 2017-06-06 14:40 +0200
    Re: Automatic updating links? Rodolfo Medina <rodolfo.medina@gmail.com> - 2017-06-06 19:50 +0200
      Re: Automatic updating links? Greg Wooledge <wooledg@eeg.ccf.org> - 2017-06-06 20:00 +0200
        Re: Automatic updating links? Rodolfo Medina <rodolfo.medina@gmail.com> - 2017-06-06 20:20 +0200
          Re: Automatic updating links? davidson@freevolt.org - 2017-06-06 20:50 +0200
            Re: Automatic updating links? davidson@freevolt.org - 2017-06-06 21:10 +0200
          Re: Automatic updating links? Darac Marjal <mailinglist@darac.org.uk> - 2017-06-07 13:20 +0200
            Re: Automatic updating links? Dan Ritter <dsr@randomstring.org> - 2017-06-15 16:20 +0200
      Re: Automatic updating links? David Wright <deblis@lionunicorn.co.uk> - 2017-06-06 21:00 +0200
        Re: Automatic updating links? Eduardo M KALINOWSKI <eduardo@kalinowski.com.br> - 2017-06-06 21:00 +0200
          Re: Automatic updating links? Rodolfo Medina <rodolfo.medina@gmail.com> - 2017-06-06 21:50 +0200
      Re: Automatic updating links? Eduardo M KALINOWSKI <eduardo@kalinowski.com.br> - 2017-06-06 21:00 +0200

csiph-web