check_other.go 527 B

12345678910111213141516171819
  1. //go:build !linux
  2. package mountlib
  3. // CheckMountEmpty checks if mountpoint folder is empty.
  4. // On non-Linux unixes we list directory to ensure that.
  5. func CheckMountEmpty(mountpoint string) error {
  6. return checkMountEmpty(mountpoint)
  7. }
  8. // CheckMountReady should check if mountpoint is mounted by rclone.
  9. // The check is implemented only for Linux so this does nothing.
  10. func CheckMountReady(mountpoint string) error {
  11. return nil
  12. }
  13. // CanCheckMountReady is set if CheckMountReady is functional
  14. var CanCheckMountReady = false