| 126 | //----------------------------------------------------------------------------- |
| 127 | |
| 128 | bool Touch( const Path &path ) |
| 129 | { |
| 130 | #if defined(TORQUE_OS_WIN) |
| 131 | return( utime( path.getFullPath(), 0 ) != -1 ); |
| 132 | #else |
| 133 | return( utimes( path.getFullPath(), NULL) == 0 ); // utimes returns 0 on success. |
| 134 | #endif |
| 135 | } |
| 136 | |
| 137 | } // namespace FS |
| 138 | } // namespace Platform |