delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/07/26/12:30:51

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: "'cygwin'" <cygwin AT cygwin DOT com>
Subject: RE: rm filename length problem
Date: Tue, 26 Jul 2005 17:30:36 +0100
MIME-Version: 1.0
In-Reply-To: <42E661D2.2090404@alltel.net>
Message-ID: <SERRANOPsygGVuwPqmB00000744@SERRANO.CAM.ARTIMI.COM>

----Original Message----
>From: Ken Dibble
>Sent: 26 July 2005 17:16

> I'm trying to script a cleanup of some directories prior to backup.
> 
> I'm having a heck of a time with some long filenames.

  'doze and *nix both have path length limitations.  Sometimes path
translation can push things over the limit.

> $ rm -Rf *
> rm: cannot remove
>
`450JUVMP/Type=click&FlightID=1991987&AdID=1986689&TargetID=2006165&Segments
=2001081,2001256,2001550,2001551,2001761,2001784,2001916,2002090,2002592,200
3057,20030[1]':
> File name too long
> rm: cannot remove directory `450JUVMP': Directory not empty

  Shorten some of those names by making the prefix shorter by moving the
entire subdir into your cygwin root!

  "  mv 450JUVMP / && rm -Rf /460JUVMP  " should work....

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019