monquatch
Junior Member
Posts: 2
Registered: 9/3/2007
Member Is Offline
|
| posted on 9/3/2007 at 08:17 PM |
|
|
Mystery files
Hi,
I used this in an .asp page to count the number of photos in the /photosMLS folder.
<%
Set Zip = Server.CreateObject("SoftComplex.Zip")
Set fso = Server.CreateObject("Scripting.FileSystemObject")
PATHDATA = Server.MapPath("photosTEMP")
PATHDATA = PATHDATA + ""
PATHDATA5 = Server.MapPath("photosMLS")
PATHDATA5 = PATHDATA5 + ""
(This post form is eliminating the back-slashes I've put in these directories... in any case mapping isn't at issue here)
Set objFolder = fso.GetFolder(PATHDATA5)
Foldercount = objFolder.Files.Count
Response.Write("Number of files = " & Foldercount & "<br>")
Set objFolder = Nothing
Set fso = Nothing
Set Zip = Nothing
%>
* This reports 9008 files (.jpgs):
When I run the following code and look at the resulting .zip archive, I'm noticing a total of 15,000+ files, some of which are not even in the
/photosMLS folder on the drive! (At least not which I can see using an ftp client, or calling the image in a browser.)
FileName = Zip.GetTempFileName(PATHDATA, "allphotos", ".zip")
FileCount = Zip.ZipFolderTo(PATHDATA, FileName)
Response.Write "FileCount=" & FileCount & "<br>"
The script times out before outputing FileCount, so I haven't been verify the numbers the component is seeing. Also, in examining the mystery .jpgs
that are being included in the archive, they are very small in size and won't open in Photoshop.
Any ideas as to why they are being included in the zip?
Thanks!
|
|
|
monquatch
Junior Member
Posts: 2
Registered: 9/3/2007
Member Is Offline
|
| posted on 9/3/2007 at 11:02 PM |
|
|
OK, I figured out what was happening here... setting Directory Recusion to False prevented it from adding the _vti_cnf (FP) directory contents to the
archive...
|
|
|
|