Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
notes-app
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Abhay Menon
notes-app
Commits
72ef8eb2
Commit
72ef8eb2
authored
2 years ago
by
abhqy
Browse files
Options
Downloads
Plain Diff
Merge branch 'main' of
https://git.uwaterloo.ca/a32menon/notes-app
into Classes
parents
be4a2b77
cf560f7e
No related branches found
No related tags found
1 merge request
!3
Constructor
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
console/build.gradle
+1
-1
1 addition, 1 deletion
console/build.gradle
utilities/src/main/kotlin/notes/multi/utilities/Filemanager.kt
+29
-0
29 additions, 0 deletions
...ties/src/main/kotlin/notes/multi/utilities/Filemanager.kt
with
30 additions
and
1 deletion
console/build.gradle
+
1
−
1
View file @
72ef8eb2
...
@@ -13,5 +13,5 @@ dependencies {
...
@@ -13,5 +13,5 @@ dependencies {
application
{
application
{
// Define the main class for the application.
// Define the main class for the application.
mainClass
=
'notes.multi.console.Console
.k
t'
mainClass
=
'notes.multi.console.Console
K
t'
}
}
This diff is collapsed.
Click to expand it.
utilities/src/main/kotlin/notes/multi/utilities/Filemanager.kt
0 → 100644
+
29
−
0
View file @
72ef8eb2
package
notes.multi.utilities
import
java.io.File
import
java.io.FileInputStream
import
java.util.*
import
kotlin.io.path.exists
class
Filemanager
(
val
dir
:
String
)
{
private
val
directory
=
File
(
dir
)
fun
files
()
:
MutableList
<
File
>
{
val
retfiles
=
mutableListOf
<
File
>()
for
(
f
in
directory
.
listFiles
()
!!
)
{
if
(
f
.
extension
==
"txt"
||
f
.
extension
==
"md"
)
{
retfiles
.
add
(
f
)
}
}
return
retfiles
}
fun
createfile
()
{
//TODO: Create File
}
fun
deletefile
(
path
:
String
)
{
//TODO: DELETE FILE
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment