Filename.st
changeset 22542 d9668611fc38
parent 22503 f1351a3f1466
child 22656 85edf3e70438
equal deleted inserted replaced
22541:b8acf94e540b 22542:d9668611fc38
  3908     "Modified: / 5.5.1999 / 13:41:27 / cg"
  3908     "Modified: / 5.5.1999 / 13:41:27 / cg"
  3909 !
  3909 !
  3910 
  3910 
  3911 safeCopyTo:newNameArg
  3911 safeCopyTo:newNameArg
  3912     "Copy the file's contents into another file.
  3912     "Copy the file's contents into another file.
  3913      Do it safe in an atomic operation shich makes sure that no partially written file appears.
  3913      Do it safe in an atomic operation which makes sure that no partially written file appears.
  3914      The argument must be convertable to a filename.
  3914      The argument must be convertable to a filename.
  3915      Raises an exception, if an error occurs."
  3915      Raises an exception, if an error occurs."
  3916 
  3916 
  3917     |newName inStream accessRights tempStream|
  3917     |newName inStream accessRights tempStream|
  3918 
  3918 
  3959      'smalltalk' asFilename safeCopyTo:'/xxxxxxxxxxxxxxxx/bla'
  3959      'smalltalk' asFilename safeCopyTo:'/xxxxxxxxxxxxxxxx/bla'
  3960     "
  3960     "
  3961 
  3961 
  3962     "Modified: / 10-09-2004 / 09:49:28 / janfrog"
  3962     "Modified: / 10-09-2004 / 09:49:28 / janfrog"
  3963     "Modified: / 29-09-2006 / 16:26:32 / cg"
  3963     "Modified: / 29-09-2006 / 16:26:32 / cg"
       
  3964     "Modified (comment): / 13-02-2018 / 11:59:48 / mawalch"
  3964 !
  3965 !
  3965 
  3966 
  3966 truncateTo:newSize
  3967 truncateTo:newSize
  3967     "change the file's size.
  3968     "change the file's size.
  3968      This may not be supported on all operating systems
  3969      This may not be supported on all operating systems