articles/dicorebol-fr/split-path.txt · Dernière modification: 07/05/2005 00:22

EN: rebol.com - rebol.org - rebol.net -
FR: Rebol Documentation Project - forum RebelBB - rebol-france.org - forum codeur -

 

Split-path - Détail de la fonction

En résumé :

Découpe le chemin d’un fichier ou d’une URL. Retourne un bloc contenant le chemin et la cible.

Utilisation :

split-path target

Arguments:

target - Le chemin à découper. (type: file! url!)

Description :

Retourne un bloc consistant en deux éléments, le chemin et le fichier. Peut être aussi utilisé sur des URL et des fichiers.

    probe split-path %tests/math/add.r
    [%tests/math/ %add.r]
    set [path file] split-path http://www.rebol.com/graphics/logo.gif
    print path
    http://www.rebol.com/graphics/
    print file
    logo.gif

Fonctions en relation :

clean-path - Nettoie les “.” et “..” dans un chemain, retourne le chemin nettoyé.

suffix? - Retourne le suffixe (ext) d’un fichier ou d’une url, autrement NONE.

Version anglaise officielle :

 
  articles/dicorebol-fr/split-path.txt · Dernière modification: 07/05/2005 00:22
 
Fil RSS: Recent changes RSS feed
Valid XHTML 1.0 Valid CSS Powered by PHP Driven by DokuWiki
Hébergement par Spinodo