<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
You need to be careful with things like <i>atime</i> - systems
using solid state disks tend to routinely set the <i>noatime </i>flag
to minimise the number of write-cycles the disk undergoes, which on
SSDs limit the lifetime of the disk.<br>
<br>
I strongly suspect that the link count from <a class="moz-txt-link-freetext" href="file:read_file_info()">file:read_file_info()</a>
(as in Taavi's post) is the way forward.<br>
<br>
Adrian<br>
<br>
On 13/03/12 15:57, Wes James wrote:
<blockquote
cite="mid:CAFjCMHtXv__c5yg96fMrjGAYUP=8CwW0X9g=tNAa4YaTYQP_wQ@mail.gmail.com"
type="cite">
<pre wrap="">There is also filelib:file_size
Another thing to look at. Can you keep track of when the folder is
first created:
#file_info.atime (keep somwhere like ets table)
then later read #file_info.atime and compare?
The problem here is that when a file file is written or the folder is
just plane read (I did ls of folder and the atime changed) the atime
changes.
Will the folder ever be accessed other than to have a file be written
to it, if so, this may work.
-wes
On Tue, Mar 13, 2012 at 9:34 AM, Zabrane Mickael <a class="moz-txt-link-rfc2396E" href="mailto:zabrane3@gmail.com"><zabrane3@gmail.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">
On Mar 13, 2012, at 4:33 PM, Wes James wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Per Bengt's experience. What happens if you add a file? Does the size change?
</pre>
</blockquote>
<pre wrap="">
Nothing change when I added a file.
Regards,
Zabrane
</pre>
</blockquote>
<pre wrap="">_______________________________________________
erlang-questions mailing list
<a class="moz-txt-link-abbreviated" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>
<a class="moz-txt-link-freetext" href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a>
</pre>
</blockquote>
</body>
</html>