From: unbewusst.sein@... (=?ISO-8859-1?Q?Une_B=E9v?= =?ISO-8859-1?Q?ue?=) Date: 2007-09-20T05:10:05+09:00 Subject: Re: special Array method about Unix pathes Une B�vue wrote: > > however with the following (part of a yaml file) : > > forbiddenList: > - /Volumes/EMTEC KEY/emtec_dl > - /Volumes/EMTEC KEY/emtec_dl/v233r001/Setup.exe > - /Volumes/U3 System > - /Volumes/U3 System/Launchpad.zip > > your select_toplevel_paths don't remove /Volumes/EMTEC > KEY/emtec_dl/v233r001/Setup.exe and /Volumes/U3 System/Launchpad.zip sorry, in fact that works wheb used as : forbidden = [ "/Volumes/U3 System", "/Volumes/EMTEC KEY/emtec_dl", "/Volumes/EMTEC KEY/emtec_dl/Win98SE new driver.exe", "/Volumes/EMTEC KEY/emtec_dl/v233r001/Setup.exe", "/Volumes/EMTEC KEY/emtec_dl/v233r001", "/Volumes/U3 System/LaunchU3.exe", "/Volumes/U3 System/Launchpad.zip" ] p forbidden forbidden = select_toplevel_paths( forbidden ) p forbidden but not when used in a class : class SyncDataSource < OSX::NSObject def initialize [...] @forbiddenList = [ ] [...] end [...] def addForbidden( notification ) [...] p @forbiddenList @forbiddenList = select_toplevel_paths( @forbiddenList ) p @forbiddenList [...] end end i don't understand why for the time being... -- Une B�vue