Debian Codegraph @

deprecated_linux.go

raw
1 // SPDX-License-Identifier: MPL-2.0
2
3 //go:build linux
4
5 // Copyright (C) 2024-2025 Aleksa Sarai <[email protected]>
6 // Copyright (C) 2024-2025 SUSE LLC
7 //
8 // This Source Code Form is subject to the terms of the Mozilla Public
9 // License, v. 2.0. If a copy of the MPL was not distributed with this
10 // file, You can obtain one at https://mozilla.org/MPL/2.0/.
11
12 package securejoin
13
14 import (
15 "github.com/cyphar/filepath-securejoin/pathrs-lite"
16 )
17
18 var (
19 // MkdirAll is a wrapper around [pathrs.MkdirAll].
20 //
21 // Deprecated: You should use [pathrs.MkdirAll] directly instead. This
22 // wrapper will be removed in filepath-securejoin v0.6.
23 MkdirAll = pathrs.MkdirAll
24
25 // MkdirAllHandle is a wrapper around [pathrs.MkdirAllHandle].
26 //
27 // Deprecated: You should use [pathrs.MkdirAllHandle] directly instead.
28 // This wrapper will be removed in filepath-securejoin v0.6.
29 MkdirAllHandle = pathrs.MkdirAllHandle
30
31 // OpenInRoot is a wrapper around [pathrs.OpenInRoot].
32 //
33 // Deprecated: You should use [pathrs.OpenInRoot] directly instead. This
34 // wrapper will be removed in filepath-securejoin v0.6.
35 OpenInRoot = pathrs.OpenInRoot
36
37 // OpenatInRoot is a wrapper around [pathrs.OpenatInRoot].
38 //
39 // Deprecated: You should use [pathrs.OpenatInRoot] directly instead. This
40 // wrapper will be removed in filepath-securejoin v0.6.
41 OpenatInRoot = pathrs.OpenatInRoot
42
43 // Reopen is a wrapper around [pathrs.Reopen].
44 //
45 // Deprecated: You should use [pathrs.Reopen] directly instead. This
46 // wrapper will be removed in filepath-securejoin v0.6.
47 Reopen = pathrs.Reopen
48 )