title: ctime, mtime, holding directory, windows, linux
body: <p>Let's clarify this once and for all. I tried to Google this but it seems this information can't be found in one place.</p>
  
  <p>When a file is created or removed, the holding directory mtime changes on Windows and Linux both. ctime also changes on Linux bot not on Windows because there ctime is create time.</p>
  
  <p>If a file is reopened and written to, the holding directory does not change. However, both on Windows and Linux the file mtime changes, and on Linux the ctime changes too, on Windows the ctime is create time.</p>
  
  <p>Is this correct? What caveats are there? Are there exceptions over, say Windows network shares? Or Samba?</p>
  
  <p>Edit: those who have voted to close this as off-topic, please leave a comment on which site do you think this is on topic. There are tons of mtime/ctime questions on Stackoverflow and just because I didn't include PHP snippets that rely on this knowledge it doesn't mean there are none :/</p>