Oct 21
Marc Pinnell L9: Content Type?
Oct 21, 2014; 22:01
Marc Pinnell
L9: Content Type?
Working with a directory full of images (and a few other files). I would like to pull a list of ONLY image files for further processing. Seems like this should work, but the "contenttype" is throwing an error ( Error Code: -9948 Error Msg: Definition Not Found: file->contentType() ):
with fname in dir(#path)->eachFile do {
if(#fname->contenttype >> $allowedPixFileTypes) => {
#returnFileNames->insert(#path + #fname->name)
}
}
BTW - $allowedPixFileTypes is an array of extensions (.jpg, .jpeg, etc). Not sure if that is the right format for the conditional. Can't test since I can't seem to pull the content type.
What am I missing?
marc
Marc Pinnell
1027 Design
PO Box 990872
Redding, CA 96099-0872
530.941.4706
fax: 866.232.5300
www.1027Design.com
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso Lasso@lists.lassosoft.com
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Oct 22
Ke Carlton Re: L9: Content Type?
Oct 22, 2014; 18:13
Ke Carlton
Re: L9: Content Type?
Oct 22
Wade Maxfield Re: L9: Content Type?
Oct 22, 2014; 18:19
Wade Maxfield
Re: L9: Content Type?
Oct 21
Marc Pinnell Re: L9: Content Type?
Oct 21, 2014; 22:21
Marc Pinnell
Re: L9: Content Type?
Oct 22
Steve Piercy - Website Builder Re: L9: Content Type?
Oct 22, 2014; 00:25
Steve Piercy - Website Builder
Re: L9: Content Type?
Oct 22
Jolle Carlestam Re: L9: Content Type?
Oct 22, 2014; 09:46
Jolle Carlestam
Re: L9: Content Type?