[Pkg] Rio: File-Base-kph.12.mcz

squeak-dev-noreply at lists.squeakfoundation.org squeak-dev-noreply at lists.squeakfoundation.org
Sat Feb 21 18:46:19 UTC 2009


A new version of File-Base was added to project Rio:
http://www.squeaksource.com/Rio/File-Base-kph.12.mcz

==================== Summary ====================

Name: File-Base-kph.12
Author: kph
Time: 21 February 2009, 6:46:16 pm
UUID: 53ac52bf-1678-4fdb-86bb-2cf5ec7b1427
Ancestors: File-Base-kph.11

+ using $+ to add an extension returns a File
+ ftpGetDirectory directory not found error returns an empty list of entries

=============== Diff against File-Base-kph.11 ===============

Item was changed:
  ----- Method: File>>+ (in category 'public path') -----
  + ext
  
+ 	^ self class newFileFrom: self value, ext asString
+ 	
+ !
- 	^ self newFrom: self value, ext asString!

Item was changed:
  ----- Method: FileFtpExecutive>>ftpGetDirectory: (in category 'ftp client') -----
  ftpGetDirectory: dirString
  	"Return a stream with a listing of the current server directory.  (Later -- Use a proxy server if one has been registered.)"
  
  	| listing str ftpEntries |
  
  	self ftpDo: [ :ftp |
+ 		[ ftp changeDirectoryTo: dirString ] on: TelnetProtocolError do: [ :ex | ^ #() ].
- 		ftp changeDirectoryTo: dirString.
  		listing := ftp getDirectory ].	 
  		
  	str := ReadStream on: listing.
  	
  	(str respondsTo: #contentsOfEntireFile) ifFalse: [^ #()].
  	
  	ftpEntries := str contentsOfEntireFile findTokens: String crlf.
  		
  	^ ftpEntries 
  		collect:[:ftpEntry | self ftpParseEntry: ftpEntry ]
  		thenSelect: [:entry | entry notNil]!



More information about the Packages mailing list