This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
teamcity-build-step-extensi.../README.md

18 lines
1.1 KiB
Markdown
Raw Normal View History

2023-12-03 01:24:30 +00:00
# TeamCity Kotlin Script build step extension library - Test Task
This is a small project to make a very basic filesystem library in Kotlin and was created using the instructions below
as part of my application to the JetBrains internship project "TeamCity Kotlin Script build step extension library".
## Instructions
Create a library implementing four classes:
- `FSEntry`, an abstract class with a name property of the type `String`;
- `FSFile` extending `FSEntry` and adding a content property of the type `String`, which will contain a textual file
content;
- `FSFolder` extending `FSEntry` and adding a content property of the type `List<FSEntry>` listing files and folders
stored within;
- `FSCreator` implementing a single `create(entryToCreate: FSEntry, destination: String)` method that would create a
directory hierarchy described by `entryToCreate` in a given file system destination path.
Please consider various **corner cases** and **error handling**. **Unit tests** covering various scenarios are expected.
The test task could be implemented in either Kotlin or Java.