Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
How to monitor a specific file for changes
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-10-23 (07:51)
From: Dave Benjamin <dave@r...>
Subject: Re: [Caml-list] How to monitor a specific file for changes
Orlin Grigorov wrote:
> Using "Unix.stat" works perfectly for my purpose!   On both platforms,
> hurray!    THANK YOU!

You may wish to consider "Unix.LargeFile.stat" if there is the 
possibility that some of these files may be large, since st_size 
contains the file size in bytes. Unix.st_size is an int, whereas 
Unix.LargeFile.st_size is an int64.