pymensago/dbfs.py
def validate_dbpath(path: str) -> bool:
	'''Returns true if the path supplied is valid'''

	if not isinstance(path, str):
		return False
	
	if path == '/':
		return True
	
	if not path or '//' in path or '\\' in path or path[-1] == '/' or path.strip() != path:
		return False
	
	return True
Returns true if the path supplied is valid
Returns true if the path supplied is valid
Returns true if the path supplied is valid
def validate_dbpath(path: str) -> bool:
	if not isinstance(path, str):
		return False
	if path == '/':
		return True
	if not path or '//' in path or '\\' in path or path[-1] == '/' or path.strip() != path:
		return False
	return True
def validate_dbpath ( path : str ) -> bool : if not isinstance ( path , str ) : return False if path == '/' : return True if not path or '//' in path or '\\' in path or path [ - 1 ] == '/' or path . strip ( ) != path : return False return True
Returns true if the path supplied is valid
Returns true if the path supplied is valid
'''Returns true if the path supplied is valid'''
path
str