Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
FmFileEntry example
Last updated at 3:08 pm UTC on 5 December 2017
FmFileEntry belongs to the FileMan package. It represents a single file entry. This includes directory entries.


Usage example:

 pathName := '/home/user20/Documents/data/pictures/93.jpg'. 
 aFmFileEntry := pathName asFileEntry.
 bytes := aFmFileEntry binaryContents.
 (Form fromBinaryStream: (ReadStream on: bytes)) asMorph openInHand.

 aFmFileEntry name '93.jpg'
 aFmFileEntry pathName '/home/user20/Documents/pdicExport/pictures/93.jpg'
 aFmFileEntry baseName  '93'