PCFilename.st
branchjv
changeset 17834 04ff72c5039a
parent 17814 b75a7f0c346b
child 17841 7abcc4aef871
equal deleted inserted replaced
17833:1602a49e146e 17834:04ff72c5039a
   102 
   102 
   103     pid := OperatingSystem getProcessId printString.
   103     pid := OperatingSystem getProcessId printString.
   104     pid := pid copyLast:(3 min:pid size).
   104     pid := pid copyLast:(3 min:pid size).
   105     nr := NextTempFilenameIndex printString.
   105     nr := NextTempFilenameIndex printString.
   106     nr := nr copyLast:(3 min:nr size).
   106     nr := nr copyLast:(3 min:nr size).
   107     nameString := (self tempFileNameTemplate)
   107     nameString := (self tempFileNameTemplate) bindWith:pid with:nr.
   108                   bindWith:pid 
       
   109                   with:nr.
       
   110     NextTempFilenameIndex := NextTempFilenameIndex + 1.
   108     NextTempFilenameIndex := NextTempFilenameIndex + 1.
   111 
   109 
   112     (aDirectoryPrefix isNil or:[aDirectoryPrefix asString isEmpty]) ifFalse:[
   110     (aDirectoryPrefix isNil or:[aDirectoryPrefix asString isEmpty]) ifFalse:[
   113         ^ aDirectoryPrefix asFilename construct:nameString
   111         ^ aDirectoryPrefix asFilename construct:nameString
   114     ].
   112     ].
   134      Filename newTemporaryIn:nil         
   132      Filename newTemporaryIn:nil         
   135      Filename newTemporaryIn:'.'         
   133      Filename newTemporaryIn:'.'         
   136      Filename newTemporaryIn:('source' asFilename) 
   134      Filename newTemporaryIn:('source' asFilename) 
   137     "
   135     "
   138 
   136 
   139     "Modified: 7.9.1995 / 10:48:31 / claus"
   137     "Modified: / 07-09-1995 / 10:48:31 / claus"
   140     "Modified: 8.9.1997 / 00:28:33 / cg"
   138     "Created: / 30-01-1998 / 11:49:33 / md"
   141     "Created: 30.1.1998 / 11:49:33 / md"
   139     "Modified: / 30-01-1998 / 12:09:18 / dq"
   142     "Modified: 30.1.1998 / 11:52:06 / md"
   140     "Modified: / 23-03-2011 / 16:29:34 / cg"
   143     "Modified: 30.1.1998 / 12:09:18 / dq"
       
   144 !
   141 !
   145 
   142 
   146 rootDirectoryOnVolume:aVolumeName
   143 rootDirectoryOnVolume:aVolumeName
   147     "return a filename for the root directory on some volume"
   144     "return a filename for the root directory on some volume"
   148 
   145 
   884 ! !
   881 ! !
   885 
   882 
   886 !PCFilename class methodsFor:'documentation'!
   883 !PCFilename class methodsFor:'documentation'!
   887 
   884 
   888 version
   885 version
   889     ^ '$Id: PCFilename.st 10602 2010-12-20 07:13:27Z vranyj1 $'
   886     ^ '$Id: PCFilename.st 10632 2011-04-09 17:19:04Z vranyj1 $'
   890 !
   887 !
   891 
   888 
   892 version_CVS
   889 version_CVS
   893     ^ '§Header: /cvs/stx/stx/libbasic/PCFilename.st,v 1.52 2010/12/01 17:54:15 cg Exp §'
   890     ^ '§Header: /var/local/cvs/stx/libbasic/PCFilename.st,v 1.53 2011-03-23 15:46:46 cg Exp §'
   894 ! !
   891 ! !
   895 
   892 
   896 
   893 
   897 
   894 
   898 
   895 
   899 
   896 
   900 
   897 
   901 
   898 
   902 
   899 
       
   900