Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

ring get the type a given path (file or directory)

Getpathtype(cPath) ---> 0 if the path doesn't exists
                        1 if it corresponds to existing file
                        2 if it corresponds to existing directory
                        -1 if the path exists but has
                           an unknown type (e.g. a pipe)
Source by ring-lang.github.io #
 
PREVIOUS NEXT
Tagged: #ring #type #path
ADD COMMENT
Topic
Name
2+2 =