MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / Touch

Function Touch

Engine/source/platform/platformVolume.cpp:128–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126//-----------------------------------------------------------------------------
127
128bool 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

Callers 1

lightMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected