![]()
[<<]Message[>>] [<<]Author [<<]Subject[>>] [<<]Thread[>>]
Number : 8697 Date : 2004-09-10 Author : Craig Subject : Re: Empty folder being deleted even when excluded Size(KB) : 2
--- In xxcopy@yahoogroups.com, "Craig" wrote: > --- In xxcopy@yahoogroups.com, "Craig" wrote: > > --- In xxcopy@yahoogroups.com, "John Zeman" wrote: > > > --- In xxcopy@yahoogroups.com, "Craig" wrote: > > > > Been running a script to auto-delete files over 60 days old in > > > > numerous folders on my FTP server. > > > > However, I've just noticed one folder being deleted each time the > > > > script is run, even when it's excluded (though the folder itself is > > > > empty) > > > > > > > > Here's the command I run: > > > > > > > > XXCOPY d:\ftp\ /x\ftp\inbox\ /x\ftp\outbox\ /x\ftp\extra\ > > > > /rs/s/y/pd0/ed/db#60 > > > > > > > > the inbox and outbox folder always have files in, and excluding > > > works > > > > fine. The 'extra' folder sometimes may have files in and sometimes > > > not > > > > when the script is run. After 3 or 4 test runs I find that when the > > > > 'extra' folder is empty, xxcopy actually deletes that folder. > > > > This is causing problems, as the folder is an actual FTP account and > > > > home folder of the same ftp account. > > > > Any ideas? Have I missed a switch out? > > > > > > > > Thanks > > > > Craig > > > > > > > > > > > > Other than possibly adding /H/R to include read only, system, and > > > hidden files, I can't see anything amiss with your command line, nor > > > can I duplicate that behavior here. > > > > > > I also don't understand what you mean when you say d:\ftp\ is an > > > actual FTP account, so I'm wondering if it's actually something other > > > than d:\ftp\ ? If it is, say something like > > > FTP://mywebsite/ftp/extra/, then I don't have any suggestions as I've > > > never tried using xxcopy that way. > > > > > > John > > > > Sorry. I probably should have explained better. the d:\ftp\ is a > > folder on a drive, within that are the inbox, outbox and extra > > folders. These 3 folders are the home directories of my FTP accounts, > > ie: when the user logs in as 'inbox' they go straight into this > > 'inbox' folder. Same for outbox and extra. > > I'll have a play with those 2 seitches you suggested, and see if i can > > replicate the problem I have with a new folder and exclude that too. > > Thanks > > OK, just created a new (empty) folder called test. Path as d:\ftp\test > Added /x\ftp\test\ to my script. Ran it, and bingo.. the folder was > deleted. > > Puzzled. > Craig OK, figureed this out now. My mistake. In my batch file, I also list all the files that would be deleted prior to deleting them and assumed because I was just listing them that some switches were not needed, for example /ED XXCOPY d:\ftp\ /x\ftp\inbox\ /x\ftp\outbox\ /x\ftp\extra\ /rs/s/pd0/db#60/ldz >> d:\deleted.txt Notice I hadn't used the /ed switch. It was the above line that was causing me the problems. Sorry to trouble you. Should have checked further first. Craig
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.