Am 05.11.2014 um 11:47 schrieb Yves Blusseau: > >> Le 5 nov. 2014 à 10:56, Erich Titl <erich.t...@think.ch> a écrit : >> >> HI Yves >> >> Am 05.11.2014 um 09:48 schrieb Yves Blusseau: >>> >>>> Le 4 nov. 2014 à 00:26, Erich Titl <erich.t...@think.ch> a écrit : >>>> >> ... >> >>> >>> Hi all, i don’t know if it can help you but i have write some functions to >>> retrieve abspath or relative path from a path. >>> You can see the functions in the utils.lib file: >>> https://github.com/LEAF-Bering-uClibc/bering-uclibc/blob/master/tools/utils.lib >> >> I had a look at your library and it appears you had the same idea. >> Could you elaborate in your file what the exact functionality of those >> helpers are and where they could and should be used. > > For abspath it’s simple, you pass a path at first argument and on optional > frompath. the pass in the first argument can be an absolute path or a > relative path (from the frompath argument (pwd if not set)). > The result will be an absolute path without .. or . in it and no duplicate / > > For relpath you pass 2 arguments: a path and a base path of the relative path > you want. > The result wiil be a relative path from the base path without .. or . in it > and no duplicate /
OK, it is not obvious from the code. Now the question arises, where is it used or what do you see it used for? cheers Erich
smime.p7s
Description: S/MIME Cryptographic Signature
------------------------------------------------------------------------------
_______________________________________________ leaf-devel mailing list leaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-devel