Skip to content

Commit 95fe56a

Browse files
committed
Removed experimental annotation from operations
1 parent 169f66a commit 95fe56a

File tree

6 files changed

+0
-23
lines changed

6 files changed

+0
-23
lines changed

os/src/FileOps.scala

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,10 @@ import scala.util.Try
2222
* ignore the destination if it already exists, using [[os.makeDir.all]]
2323
*/
2424
object makeDir extends Function1[Path, Unit] {
25-
@experimental
2625
def apply(path: Path): Unit = {
2726
checker.value.onWrite(path)
2827
Files.createDirectory(path.wrapped)
2928
}
30-
@experimental
3129
def apply(path: Path, perms: PermSet): Unit = {
3230
checker.value.onWrite(path)
3331
Files.createDirectory(
@@ -43,7 +41,6 @@ object makeDir extends Function1[Path, Unit] {
4341
*/
4442
object all extends Function1[Path, Unit] {
4543
def apply(path: Path): Unit = apply(path, null, true)
46-
@experimental
4744
def apply(path: Path, perms: PermSet = null, acceptLinkedDirectory: Boolean = true): Unit = {
4845
checker.value.onWrite(path)
4946
// We special case calling makeDir.all on a symlink to a directory;
@@ -85,7 +82,6 @@ object move {
8582
def matching(partialFunction: PartialFunction[Path, Path]): PartialFunction[Path, Unit] = {
8683
matching()(partialFunction)
8784
}
88-
@experimental
8985
def apply(
9086
from: Path,
9187
to: Path,
@@ -178,7 +174,6 @@ object copy {
178174
matching()(partialFunction)
179175
}
180176

181-
@experimental
182177
def apply(
183178
from: Path,
184179
to: Path,
@@ -323,7 +318,6 @@ object copy {
323318
*/
324319
object remove extends Function1[Path, Boolean] {
325320
def apply(target: Path): Boolean = apply(target, false)
326-
@experimental
327321
def apply(target: Path, checkExists: Boolean = false): Boolean = {
328322
checker.value.onWrite(target)
329323
if (checkExists) {
@@ -335,7 +329,6 @@ object remove extends Function1[Path, Boolean] {
335329
}
336330

337331
object all extends Function1[Path, Unit] {
338-
@experimental
339332
def apply(target: Path) = {
340333
require(target.segmentCount != 0, s"Cannot remove a root directory: $target")
341334
checker.value.onWrite(target)
@@ -366,7 +359,6 @@ object exists extends Function1[Path, Boolean] {
366359
* Creates a hardlink between two paths
367360
*/
368361
object hardlink {
369-
@experimental
370362
def apply(link: Path, dest: Path) = {
371363
checker.value.onWrite(link)
372364
checker.value.onRead(dest)
@@ -378,7 +370,6 @@ object hardlink {
378370
* Creates a symbolic link between two paths
379371
*/
380372
object symlink {
381-
@experimental
382373
def apply(link: Path, dest: FilePath, perms: PermSet = null): Unit = {
383374
checker.value.onWrite(link)
384375
checker.value.onRead(dest match {

os/src/PermsOps.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ object perms extends Function1[Path, PermSet] {
2323
* default set of permissions and having `os.perms.set` over-write them later
2424
*/
2525
object set {
26-
@experimental
2726
def apply(p: Path, arg2: PermSet): Unit = {
2827
checker.value.onWrite(p)
2928
Files.setPosixFilePermissions(p.wrapped, arg2.toSet())
@@ -46,7 +45,6 @@ object owner extends Function1[Path, UserPrincipal] {
4645
* Set the owner of the file/folder at the given path
4746
*/
4847
object set {
49-
@experimental
5048
def apply(arg1: Path, arg2: UserPrincipal): Unit = {
5149
checker.value.onWrite(arg1)
5250
Files.setOwner(arg1.wrapped, arg2)
@@ -78,7 +76,6 @@ object group extends Function1[Path, GroupPrincipal] {
7876
* Set the owning group of the file/folder at the given path
7977
*/
8078
object set {
81-
@experimental
8279
def apply(arg1: Path, arg2: GroupPrincipal): Unit = {
8380
checker.value.onWrite(arg1)
8481
Files.getFileAttributeView(

os/src/ReadWriteOps.scala

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ object write {
2121
/**
2222
* Open a [[java.io.OutputStream]] to write to the given file
2323
*/
24-
@experimental
2524
def outputStream(
2625
target: Path,
2726
perms: PermSet = null,
@@ -48,7 +47,6 @@ object write {
4847
* from `java.nio.file.Files.write` so we could re-use it properly for
4948
* different combinations of flags and all sorts of [[Source]]s
5049
*/
51-
@experimental
5250
def write(
5351
target: Path,
5452
data: Source,
@@ -169,7 +167,6 @@ object write {
169167
* Opens a [[SeekableByteChannel]] to write to the given file.
170168
*/
171169
object channel extends Function1[Path, SeekableByteChannel] {
172-
@experimental
173170
def write(p: Path, options: Seq[StandardOpenOption]) = {
174171
checker.value.onWrite(p)
175172
java.nio.file.Files.newByteChannel(p.toNIO, options.toArray: _*)
@@ -217,7 +214,6 @@ object write {
217214
* given size, does nothing.
218215
*/
219216
object truncate {
220-
@experimental
221217
def apply(p: Path, size: Long): Unit = {
222218
checker.value.onWrite(p)
223219
val channel = FileChannel.open(p.toNIO, StandardOpenOption.WRITE)
@@ -250,7 +246,6 @@ object read extends Function1[ReadablePath, String] {
250246
* Opens a [[java.io.InputStream]] to read from the given file
251247
*/
252248
object inputStream extends Function1[ReadablePath, java.io.InputStream] {
253-
@experimental
254249
def apply(p: ReadablePath): java.io.InputStream = {
255250
checker.value.onRead(p)
256251
p.getInputStream
@@ -274,7 +269,6 @@ object read extends Function1[ReadablePath, String] {
274269
* Opens a [[SeekableByteChannel]] to read from the given file.
275270
*/
276271
object channel extends Function1[Path, SeekableByteChannel] {
277-
@experimental
278272
def apply(p: Path): SeekableByteChannel = {
279273
checker.value.onRead(p)
280274
p.toSource.getChannel()

os/src/StatOps.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ object mtime extends Function1[Path, Long] {
7373
* https://stackoverflow.com/questions/17308363/symlink-lastmodifiedtime-in-java-1-7
7474
*/
7575
object set {
76-
@experimental
7776
def apply(p: Path, millis: Long) = {
7877
checker.value.onWrite(p)
7978
Files.setLastModifiedTime(p.wrapped, FileTime.fromMillis(millis))

os/src/TempOps.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ object temp {
2020
* By default, temporary files are deleted on JVM exit. You can disable that
2121
* behavior by setting `deleteOnExit = false`
2222
*/
23-
@experimental
2423
def apply(
2524
contents: Source = null,
2625
dir: Path = null,
@@ -53,7 +52,6 @@ object temp {
5352
* By default, temporary directories are deleted on JVM exit. You can disable that
5453
* behavior by setting `deleteOnExit = false`
5554
*/
56-
@experimental
5755
def dir(
5856
dir: Path = null,
5957
prefix: String = null,

os/src/ZipOps.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ object zip {
3636
* @param compressionLevel number from 0-9, where 0 is no compression and 9 is best compression. Defaults to -1 (default compression)
3737
* @return The path to the created ZIP archive.
3838
*/
39-
@experimental
4039
def apply(
4140
dest: os.Path,
4241
sources: Seq[ZipSource] = List(),
@@ -266,7 +265,6 @@ object unzip {
266265
* @param dest The path to the destination directory for extracted files.
267266
* @param excludePatterns A list of regular expression patterns to exclude files during extraction. (Optional)
268267
*/
269-
@experimental
270268
def stream(
271269
source: geny.Readable,
272270
dest: os.Path,

0 commit comments

Comments
 (0)