Return the path of file relative to
Returns the fully qualified class path of the instantiated object.
Write an object as a json string to a file.
Write a text to a file.
Checks if the given directory contains a model and can be safely removed.
specifically checks if the directory has no subdirectories and if all files have an appropriate ending.
Check whether the url specified is a well formed one.
Regex adapted from https://stackoverflow.com/a/7160778/3001665
resource_name- Remote URL to validate
Trueif valid, otherwise
Removes a model directory and all its content.