Am 10.06.2013 21:55, schrieb foster:
> Hi Jan.
> It's definitely problem of python or os module. Or both. When I connect
> ibutton:
> pi@raspberrypi ~ $ ls /mnt/1wire/uncached | grep 01.49
> 01.4991AE150000
>
> When I disconnect:
> pi@raspberrypi ~ $ ls /mnt/1wire/uncached | grep 01.49
> pi@raspberrypi ~ $
>
> LS command immediately reflect connected or disconnected ibutton. Of course
> when I read noncached directory, it takes time to dismiss directory. But I
> don't use cache directory. If you don't believe me, I can record video and
> post to youtube.
>
No, I don't need a video of this. Above, you're doing it different than
you do it in your python script.
Above, you readdir("/tmp/ow/uncached"). In your python script, you do
if ospath.isexists('/mnt/1wire/uncached/01.4991AE150000/id')
instead, which is stat("mnt/1wire/uncached/01.4991AE150000/id",...).
These are two different operations. Please do a
$ cat /mnt/1wire/uncached/01.4991AE150000/id
after pulling the iButton chip. By the way, even readdir on
/mnt/1wire/uncached/01.4991AE150000) will still show this directories
content even when readdir on /mnt/1wire/uncached lets you assume it has
long gone away:
$ ls /mnt/1wire/uncached/01.4991AE150000/
Kind regards
Jan
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers