The function isRootDirectory() is tiny and can be converted to an inline function. Don't allow name==NULL.
Attach a file by drag & drop or click to upload