delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/04/07/16:52:55

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <ad7e79920804071351o763768ecpa7c3e70cfe22b00f@mail.gmail.com>
Date: Mon, 7 Apr 2008 15:51:06 -0500
From: "Manuel Gonzalez Montoya" <manuel DOT gonzalez DOT montoya AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: mtime question
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hi all,

I'm writing a little program in C in order to detect when a file
download is completed. The way i do that is checking when file's mtime
stop changing.

So far the code works ok on a real Linux installation, but I'm having
problems on cygwin because mtime is changed only once at the end of
the transfer.

so before going forward with this, here is my question:

Is the file's mtime supposed to change on every write to the file?.

Thanks in advance.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019