--=-k3zxgkekCdPdWv/oKQ33
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printableOn Fri, 2012-07-13 at 15:57 +0100, James Morris wrote:
I just used the original name of the file, with a number added for
uniqueness if necessary (which is very seldom the case). It works and
is much more human-friendly and straightforward than the above options.
A "make this path unique by sticking a number on the end of it" function
turns out to be pretty useful anyway.
Of course, you need to actually check for existence of files to create
it, which might be a problem in some cases (though not any I've
encountered), but anything that assumes a mapping based on the current
path is a unique identifier for a particular file's contents is bound to
fail anyway.
-dr
--=-k3zxgkekCdPdWv/oKQ33
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iQIcBAABCAAGBQJQA4KTAAoJEDZyeCqb82jzgeIP/iD8dBBa+qIOcxMbGBI5cnO9
JFUwP2iyBe/5bvxQf8u5yyXWLX9Gy5b1UVudg4q8Tu2UhF81asfJzndLwReQr8Jx
xypSf8Qo9dGUvId0S2u7L9QFl68NW/e0ap6yIH3Jo5EC1ZvCbKgAuwIFTa8k/1mc
BXr9xtJAuGJbqTVNpx2ySjjhNL1UjAL1K0sWsrVrbYiDM/sKOkzMP59GgDVO+kiR
mXnc0XWQ8XPqFPj+eHpKW1noOcNLCzsI9tPHToZVkWVFYI+fPZgFuiqGWoxhcwOU
9q5h7k4zZPcFzJCfKvMP+ww9n6tq1TetHXCN6U88nmPeQYBL7F+ViKDtEvz9vL6I
HSNgnD4kZVViifTKOSdIdk3+eS9FxlI7BCnBowNRTcN5eXA/QRpxSbOOPkEnQ3ey
nOl+4xlS6284UKh22RKGtl61/vgLOQ5CNoz6DwCR2tNLhUDql9MJ6etEmrqDv+m5
qrWfr2jGVqTLl4i+2OvJQKBrEVeqzKnKw5G1un6ya2zlaPKin3/h7vyJnA2spNo1
lQJoKIZJjepXkaK484nix0SKtslOnEam1rsw5KN+sHu863Ffm+eYDHsPTBjQSwKg
P/eW7X7V6gwTTc5rfZNDtK/x3iAmJtuaPkpX6Yhv/bn9AD9JTzBTvkV7ZtSojby5
r8u8NzWphBnOZTqRnBli
=bSST
-----END PGP SIGNATURE-----
--=-k3zxgkekCdPdWv/oKQ33--
LINUX® is a registered trademark of Linus Torvalds in the USA and other countries.
Linuxaudio.org logo copyright Thorsten Wilms © 2006.
Hosting provided by the Virginia Tech Department of Music and DISIS.