[Gllug] OT: Very long pathnames
Alain Williams
addw at phcomp.co.uk
Mon May 23 16:05:29 UTC 2005
On Mon, May 23, 2005 at 03:52:15PM +0100, Peter Ball wrote:
> Hi
>
> I've got about 50 Gbytes of Windows shares to transfer to a Samba server.
>
> Particularly where users have saved web pages we end up with crazy long
> path names (especially when the complete web page is saved creating a
> sub-folder sometimes to multiple levels).
>
> Windows will actually save and use pathnames which exceed its own
> specifications (I've got one here where the total path is 264 characters - the
> file name alone is 197 characters). It works fine until you try to copy the
> share and god knows what it does when you backup, restore, zip, unzip etc.
>
> Does anyone know of any tools Windows or Linux tools which will audit a
> Windows/Samba share and list all pathnames longer than say 200
> characters ?
ls -R | awk '/:$/ { dir = substr($1, 1, length($1) - 1) "/"; next}
/^$/ { next }
{ if(length > 200) print dir $0 }'
--
Alain Williams
Parliament Hill Computers Ltd.
Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256
#include <std_disclaimer.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20050523/85f9f637/attachment.pgp>
-------------- next part --------------
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list