Пример #1
0
        public void FileCopy(string fromPath, string toPath)
        {
            var oldThumbPath = CombinePath(fromPath);
            var newThumbPath = CombinePath(toPath);

            var hostFilesystem = new StorageHostFullPathFilesystem(_logger);

            var existOldFile = hostFilesystem.ExistFile(oldThumbPath);
            var existNewFile = hostFilesystem.ExistFile(newThumbPath);

            if (!existOldFile || existNewFile)
            {
                return;
            }
            hostFilesystem.FileCopy(oldThumbPath, newThumbPath);
        }