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) =>
|
2021-05-23 19:22:22 +02:00
|
|
|
"${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";
|
|
|
|
|
2021-05-24 09:01:42 +02:00
|
|
|
String getRemoteTouchDir(Account account) =>
|
|
|
|
"${getRemoteStorageDir(account)}/touch";
|
|
|
|
|
2021-10-08 20:39:53 +02:00
|
|
|
String getRemoteLinkSharesDir(Account account) =>
|
|
|
|
"${getRemoteStorageDir(account)}/link_shares";
|
|
|
|
|
2021-05-23 19:22:22 +02:00
|
|
|
String getRemoteStorageDir(Account account) =>
|
2022-10-15 16:29:18 +02:00
|
|
|
"${api_util.getWebdavRootUrlRelative(account)}/$remoteStorageDirRelativePath";
|
|
|
|
|
|
|
|
const remoteStorageDirRelativePath = ".com.nkming.nc_photos";
|