mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 00:14:35 +03:00
9bfb48c921
Summary: Update the copyright & license headers in Python files to reflect the relicensing to GPLv2 Reviewed By: wez Differential Revision: D15487088 fbshipit-source-id: 9f2138dff41048d2c35f15e09a04ae5a9c9c80dd
21 lines
479 B
Python
21 lines
479 B
Python
#!/usr/bin/env python3
|
|
# Copyright (c) Facebook, Inc. and its affiliates.
|
|
#
|
|
# This software may be used and distributed according to the terms of the
|
|
# GNU General Public License version 2.
|
|
|
|
import abc
|
|
|
|
from . import util
|
|
|
|
|
|
class FsUtil(abc.ABC):
|
|
@abc.abstractmethod
|
|
def mkdir_p(self, path: str) -> str:
|
|
"""Performs `mkdir -p <path>` and returns the path."""
|
|
|
|
|
|
class LinuxFsUtil(FsUtil):
|
|
def mkdir_p(self, path: str) -> str:
|
|
return util.mkdir_p(path)
|