nc-photos/app/lib/remote_storage_util.dart

20 lines
692 B
Dart
Raw Normal View History

2021-05-23 19:18:24 +02:00
import 'package:nc_photos/account.dart';
import 'package:nc_photos/api/api_util.dart' as api_util;
String getRemoteAlbumsDir(Account account) =>
"${getRemoteStorageDir(account)}/albums";
2021-05-23 19:18:24 +02:00
2021-08-08 14:09:21 +02:00
String getRemotePendingSharedAlbumsDir(Account account) =>
"${getRemoteStorageDir(account)}/shared_albums";
String getRemoteTouchDir(Account account) =>
"${getRemoteStorageDir(account)}/touch";
2021-10-08 20:39:53 +02:00
String getRemoteLinkSharesDir(Account account) =>
"${getRemoteStorageDir(account)}/link_shares";
String getRemoteStorageDir(Account account) =>
"${api_util.getWebdavRootUrlRelative(account)}/$remoteStorageDirRelativePath";
const remoteStorageDirRelativePath = ".com.nkming.nc_photos";