Open dbeuchler opened 7 years ago
I think it should be enough to export the images on external removable devices. Maybe for special admins also on user folder.
On all systems (Linux, OS X, Windows), the following command will return the DriveInfo:
var drives = DriveInfo.GetDrives().Where(di => di.DriveType == DriveType.Removable)
. We do not need the RuntimeInformation.IsOSPlatform
checks.
With .NET Core 1.1 the Home
-Directory can only be loaded with Environment.GetEnvironmentVariable("HOME")
. From .NET Standard 1.7 the Environment.SpecialFolder.UserProfile
can be used (we can wait for #37).
Whats about a browser for possible folders on the removable device?
Something like this:
Have you tested if var drives = DriveInfo.GetDrives().Where(di => di.DriveType == DriveType.Removable)
returns the mount path or just the drive partition. Those are both "file path" in Unix - but do not have the same behavior.
I like the FileBrowser idea though
The admin page should have an export function to export all uploaded images on the local file system or on removable devices