[aida] Error when attached file name has no extension

nico petton.nicolas at gmail.com
Thu Sep 18 23:05:34 CEST 2008


Le vendredi 19 septembre 2008 à 02:09 +0700, Вася Чайко a écrit :
> Hello.
> 
> Error occured when I attach file with no extension. Method SpFilename 
> extension return nil.

Thanks again :)

Cheers!

Nico
> 
> Fix: SpFilename-extension.st
> pièce jointe document texte brut (SpFilename-extension.st)
> 'From Squeak3.10.2 of ''5 June 2008'' [latest update: #7179] on 19 September 2008 at 2:04:25 am'!!SpFilename methodsFor: '*Swazoo-accessing' stamp: 'VasyaChajko 9/19/2008 02:02'!extension	"Answer the receiver's extension if any.  This is the characters from the	 last occurrence of a period to the end, inclusive. E.g. the extension of	 'squeak.image' is '.image'. Answer nil if none.  Note that e.g. .login has no	 extension."	| string periodIndex |	string := self tail.	periodIndex := string lastIndexOf: $..	^ periodIndex > 1		ifTrue: [ string copyFrom: periodIndex to: string size. ]		ifFalse: [ ''. ].! !
> _______________________________________________ Aida mailing list Aida at aidaweb.si http://lists.aidaweb.si/mailman/listinfo/aida
-------------- section suivante --------------
Une pi�ce jointe non texte a �t� nettoy�e...
Nom: non disponible
Type: application/pgp-signature
Taille: 189 octets
Desc: Ceci est une partie de message
	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=
Url: http://lists.aidaweb.si/pipermail/aida/attachments/20080918/8b525685/attachment.sig 


More information about the Aida mailing list