Filename.st
changeset 2987 87a7ad1f4519
parent 2982 3032a3a7e17a
child 3015 5df2984673db
equal deleted inserted replaced
2986:c6957cf6128f 2987:87a7ad1f4519
  1393 !Filename methodsFor:'file queries'!
  1393 !Filename methodsFor:'file queries'!
  1394 
  1394 
  1395 accessTime
  1395 accessTime
  1396     "return a timeStamp containing the files last access time."
  1396     "return a timeStamp containing the files last access time."
  1397 
  1397 
  1398     ^ self dates at:#accessed
  1398     ^ self info accessed
  1399 
  1399 
  1400     "
  1400     "
  1401      Filename currentDirectory accessTime 
  1401      Filename currentDirectory accessTime 
  1402     "
  1402     "
  1403 
  1403 
  1404     "Created: 9.7.1996 / 10:19:15 / cg"
  1404     "Created: 9.7.1996 / 10:19:15 / cg"
  1405     "Modified: 9.7.1996 / 10:19:27 / cg"
  1405     "Modified: 9.7.1996 / 10:19:27 / cg"
       
  1406     "Modified: 26.9.1997 / 13:05:51 / stefan"
  1406 !
  1407 !
  1407 
  1408 
  1408 dates
  1409 dates
  1409     "return the files modification and access times as an object (currently a dictionary)
  1410     "return the files modification and access times as an object (currently a dictionary)
  1410      that responds to the at: message with arguments 
  1411      that responds to the at: message with arguments 
  1634 !
  1635 !
  1635 
  1636 
  1636 modificationTime
  1637 modificationTime
  1637     "return a timeStamp containing the files modification time."
  1638     "return a timeStamp containing the files modification time."
  1638 
  1639 
  1639     ^ self dates at:#modified
  1640     ^ self info modified
  1640 
  1641 
  1641     "
  1642     "
  1642      Filename currentDirectory modificationTime
  1643      Filename currentDirectory modificationTime
  1643     "
  1644     "
  1644 
  1645 
  1645     "Created: 9.7.1996 / 10:18:59 / cg"
  1646     "Created: 9.7.1996 / 10:18:59 / cg"
       
  1647     "Modified: 26.9.1997 / 13:05:39 / stefan"
  1646 !
  1648 !
  1647 
  1649 
  1648 type
  1650 type
  1649     "return the symbolic type of the file"
  1651     "return the symbolic type of the file"
  1650 
  1652 
  2460     "
  2462     "
  2461 
  2463 
  2462     "Modified: 29.2.1996 / 20:21:25 / cg"
  2464     "Modified: 29.2.1996 / 20:21:25 / cg"
  2463 !
  2465 !
  2464 
  2466 
       
  2467 localPathName
       
  2468     "return the full pathname of the file represented by the receiver,
       
  2469      but without any volume information.
       
  2470      Only makes a difference on MSDOS & VMS systems."
       
  2471 
       
  2472     ^ self pathName
       
  2473 !
       
  2474 
  2465 name
  2475 name
  2466     "return the name of the file represented by the receiver as a string.
  2476     "return the name of the file represented by the receiver as a string.
  2467      This may or may not be a relative name (i.e. include ..'s).
  2477      This may or may not be a relative name (i.e. include ..'s).
  2468      See also: pathName"
  2478      See also: pathName"
  2469 
  2479 
  2488     "
  2498     "
  2489 
  2499 
  2490     "Modified: 18.1.1996 / 21:36:27 / cg"
  2500     "Modified: 18.1.1996 / 21:36:27 / cg"
  2491 !
  2501 !
  2492 
  2502 
  2493 localPathName
       
  2494     "return the full pathname of the file represented by the receiver,
       
  2495      but without any volume information.
       
  2496      Only makes a difference on MSDOS & VMS systems."
       
  2497 
       
  2498     ^ self pathName
       
  2499 !
       
  2500 
       
  2501 pathName
  2503 pathName
  2502     "return the full pathname of the file represented by the receiver,
  2504     "return the full pathname of the file represented by the receiver,
  2503      as a string. This will not include ..'s. 
  2505      as a string. This will not include ..'s. 
  2504      If the path represented by the receiver does NOT represent a valid path,
  2506      If the path represented by the receiver does NOT represent a valid path,
  2505      no compression will be done (for now; this may change).
  2507      no compression will be done (for now; this may change).
  2750 ! !
  2752 ! !
  2751 
  2753 
  2752 !Filename class methodsFor:'documentation'!
  2754 !Filename class methodsFor:'documentation'!
  2753 
  2755 
  2754 version
  2756 version
  2755     ^ '$Header: /cvs/stx/stx/libbasic/Filename.st,v 1.107 1997-09-24 03:45:26 cg Exp $'
  2757     ^ '$Header: /cvs/stx/stx/libbasic/Filename.st,v 1.108 1997-09-30 09:36:17 stefan Exp $'
  2756 ! !
  2758 ! !
  2757 Filename initialize!
  2759 Filename initialize!