1
0

IMovableMount.php 586 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Files\Mount;
  8. /**
  9. * Denotes that the mount point can be (re)moved by the user
  10. *
  11. * @since 28.0.0
  12. */
  13. interface IMovableMount {
  14. /**
  15. * Move the mount point to $target
  16. *
  17. * @param string $target the target mount point
  18. * @return bool
  19. * @since 28.0.0
  20. */
  21. public function moveMount($target);
  22. /**
  23. * Remove the mount points
  24. *
  25. * @return bool
  26. * @since 28.0.0
  27. */
  28. public function removeMount();
  29. }