mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-24 23:09:33 +01:00
Following same conventions from remotes/outsputs/dependencies. Signed-off-by: Ruslan Kuprieiev <[email protected]>
17 lines
427 B
Python
17 lines
427 B
Python
from dvc.utils.compat import urlunsplit
|
|
from dvc.scheme import Schemes
|
|
from .base import PathBASE
|
|
|
|
|
|
class PathHDFS(PathBASE):
|
|
scheme = Schemes.HDFS
|
|
|
|
def __init__(self, user, url=None, path=None):
|
|
super(PathHDFS, self).__init__(url, path)
|
|
self.user = user
|
|
|
|
def __str__(self):
|
|
if not self.url:
|
|
return urlunsplit((self.scheme, self.user, self.path, "", ""))
|
|
return self.url
|