Return to Snippet

Revision: 44757
at April 18, 2011 03:56 by pussard


Initial Code
function getFileNameFromPath(path) {
    return path.substring(path.lastIndexOf('/') + 1);
}

Initial URL

                                

Initial Description

                                

Initial Title
Get file name from path

Initial Tags

                                

Initial Language
JavaScript