gio.File --- removing attributes



Hi,

	First of all, sorry if I am writing to the wrong mailing list. I am
looking for a way to remove an attribute by using
gio.File.set_attribute() call. In the C equivalent, it seems that
passing a NULL value_p will remove the attribute. I tried various way to
do that, without luck. 

	To explain: I can set an emblem for a file like that: 

mydir=gio.File("./tmp")                                                   
mydirr.set_attribute("metadata::emblems",                                    
  gio.FILE_ATTRIBUTE_TYPE_STRINGV, ["RGeducation", "hot"]) 

but after that I did not find any way to pass the equivalent of NULL to
the value to completely remove the attribute. If I pass a [], the
attribute is still there, with a [] value. 

On the other end, by l-tracing gvfs-set-attribute -t unset ./tmp, it
seems that g_file_set_attribute is simple called with a NULL value_p. 

It's me doing something bad here? Thanks for any help. 
 
	Romano Giannetti

PD I am not subscribed to the list. If you can, please Cc: me the
answer. I will nevertheless check the archives. 


--
La presente comunicacion tiene caracter confidencial y es para el exclusivo uso del destinatario indicado en la misma. Si Ud. no es el destinatario indicado, le informamos que cualquier forma de distribucion, reproduccion o uso de esta comunicacion y/o de la informacion contenida en la misma estan estrictamente prohibidos por la ley. Si Ud. ha recibido esta comunicacion por error, por favor, notifiquelo inmediatamente al remitente contestando a este mensaje y proceda a continuacion a destruirlo. Gracias por su colaboracion.

This communication contains confidential information. It is for the exclusive use of the intended addressee. If you are not the intended addressee, please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited by law. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy this message. Thank you for your cooperation.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]