Socialmetrica/Socialmetrica.package/NitterUser.class/instance/exportProfileImageOn..st

11 lines
335 B
Smalltalk

accessing
exportProfileImageOn: fileReference
| file |
file := fileReference asFileReference.
file ensureDelete.
file exists ifFalse: [ file ensureCreateFile ].
file binaryWriteStreamDo: [ :stream |
stream nextPutAll: profileImageUrl retrieveContents ].
super class inform: 'Exported as: ', String cr, file fullName.
^ file