Forum Discussion
Philip_Baird
12 years agoCommunity Hero
Hi Jeremy, no, not at all, what I posted was how the Files.FileNameByName() method appears to work.
Store.Files and Storages are two completely different objects.
As per the documentation, Stores.Files is simply a "collection named Files and stores references to different kinds of files (graphic, text, HTML files and others) that can be used in tests"
whereas, as per the documentation, the Storages object is a mechanism to store and retrieve data in INI, XML or Binary files.
The Storages object itself has no knowledge of the files referenced by the File.Stores collection nor their file types.
Storage.INI() only knows to parse the file specified by a fully qualified path, it is during parsing that Storages.INI() will determine if the file is a valid ini file.
Regards,
Phil Baird
Store.Files and Storages are two completely different objects.
As per the documentation, Stores.Files is simply a "collection named Files and stores references to different kinds of files (graphic, text, HTML files and others) that can be used in tests"
whereas, as per the documentation, the Storages object is a mechanism to store and retrieve data in INI, XML or Binary files.
The Storages object itself has no knowledge of the files referenced by the File.Stores collection nor their file types.
Storage.INI() only knows to parse the file specified by a fully qualified path, it is during parsing that Storages.INI() will determine if the file is a valid ini file.
Regards,
Phil Baird