function getFilename(fullname){ return fullname.replace(/^.*[\\\/]/, ''); } function getFilepath(fullname){ var fn = fullname.split('/'); fn.pop(); return fn.join("/"); }
function getFilename(fullname){ return fullname.replace(/^.*[\\\/]/, ''); } function getFilepath(fullname){ var fn = fullname.split('/'); fn.pop(); return fn.join("/"); }