<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2017-04-21 11:28 GMT+02:00 Esteban Lorenzano <span dir="ltr"><<a href="mailto:estebanlm@gmail.com" target="_blank">estebanlm@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi Alistair,<br>
<br>
in the past we extended dir_EntryLookup because a lot of important information was missing. With time, I realised that maybe it would have been better to add an extra primitive to get extended properties.<br>
st_dev is not very used but I understand it can be good to have access to it.<br>
<br>
Then, my question now is: wouldn't be better to add an "extended properties” primitive, to answer st_dev and others?<br>
<span class="HOEnZb"><font color="#888888"><br>
Esteban<br>
</font></span><div class="HOEnZb"><div class="h5"><br></div></div></blockquote><div><br></div><div>Hi Esteban, from maintenance POV, yes you are right.<br></div><div>A new primitive is better.<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">
> On 21 Apr 2017, at 10:32, Alistair Grant <<a href="mailto:akgrant0710@gmail.com">akgrant0710@gmail.com</a>> wrote:<br>
><br>
><br>
> Hi All,<br>
><br>
> I'm in the process of making FileReference>>moveTo: work across devices.<br>
> To make the implementation a bit cleaner on Linux it would be nice to<br>
> know whether the source and destination reside on the same disk<br>
> filesystem.  This can be determined by comparing stat.st_dev for the<br>
> source file and destination directory.<br>
><br>
> dir_EntryLookup() in sqUnixFile.c is exposed as primitiveDirectoryEntry<br>
> and used by FilePluginPrims>><wbr>lookupDirectory:filename:<br>
><br>
> It basically does a stat() on the supplied file and returns most of the<br>
> resulting information.  Unfortunately st_dev isn't returned.<br>
><br>
> Would there be any objection to me extending the Pharo version of<br>
> dir_EntryLookup() to include st_dev?<br>
><br>
> Thanks,<br>
> Alistair<br>
><br>
<br>
</div></div></blockquote></div><br></div></div>