Re: pathinfo is broken

new topic     » goto parent     » topic index » view thread      » older message » newer message

What version of Euphoria are you using?

In latest commit from HG I can read inside filesys.e

-- Returns: 
--              A **sequence**, of length five. Each of these elements is a string: 
--              * The path name. For //Windows// this excludes the drive id. 
--              * The full unqualified file name 
--              * the file name, without extension 
--              * the file extension 
--              * the drive id 
-- 
So I guess the online documentation is not up to date with the code.

However, the example is still wrong:

-- -- WINDOWS 
-- info = pathinfo("C:\\euphoria\\docs\\readme.txt") 
-- -- info is {"C:\\euphoria\\docs", "readme.txt", "readme", "txt", "C"} 

Edit: I've just checked 4.0.5 and the behavior is the same as you describe. It's definitely a bug in the documentation.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu