qubit_fs/options/copy_mode.rs
1/*******************************************************************************
2 *
3 * Copyright (c) 2026 Haixing Hu.
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 *
7 * Licensed under the Apache License, Version 2.0.
8 *
9 ******************************************************************************/
10//! Copy source interpretation mode.
11
12/// Copy source interpretation mode.
13#[derive(Clone, Copy, Debug, Eq, PartialEq)]
14pub enum CopyMode {
15 /// Copy a single file, object, or resource.
16 File,
17 /// Copy a directory tree, prefix tree, or collection subtree.
18 Tree,
19 /// Detect the source type before choosing file or tree copy.
20 Auto,
21}
22
23impl Default for CopyMode {
24 /// Uses automatic source type detection by default.
25 #[inline]
26 fn default() -> Self {
27 Self::Auto
28 }
29}