Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Mystery files
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!
View User's Profile View All Posts By User U2U Member
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...
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Free Download Free Download
Product Documentation Documentation
Documenation Page
Code Samples
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004