Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
knowledge-platform
Commits
0e071c3f
Unverified
Commit
0e071c3f
authored
2 years ago
by
Anil Gupta
Committed by
GitHub
2 years ago
Browse files
Options
Download
Plain Diff
Issue #SB-29808 merge: Merge pull request #832 from Jayaprakash8887/SB29808
Issue #SB-29808 debug: Review API failing
parents
545da73c
433f22a2
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
platform-modules/mimetype-manager/src/main/scala/org/sunbird/mimetype/ecml/processor/LocalizeAssetProcessor.scala
+3
-1
...bird/mimetype/ecml/processor/LocalizeAssetProcessor.scala
with
3 additions
and
1 deletion
+3
-1
platform-modules/mimetype-manager/src/main/scala/org/sunbird/mimetype/ecml/processor/LocalizeAssetProcessor.scala
+
3
−
1
View file @
0e071c3f
...
@@ -2,12 +2,12 @@ package org.sunbird.mimetype.ecml.processor
...
@@ -2,12 +2,12 @@ package org.sunbird.mimetype.ecml.processor
import
java.io.
{
File
,
IOException
}
import
java.io.
{
File
,
IOException
}
import
java.net.URL
import
java.net.URL
import
org.apache.commons.io.
{
FileUtils
,
FilenameUtils
}
import
org.apache.commons.io.
{
FileUtils
,
FilenameUtils
}
import
org.apache.commons.lang3.StringUtils
import
org.apache.commons.lang3.StringUtils
import
org.sunbird.cloudstore.StorageService
import
org.sunbird.cloudstore.StorageService
import
org.sunbird.common.Platform
import
org.sunbird.common.Platform
import
org.sunbird.common.exception.ClientException
import
org.sunbird.common.exception.ClientException
import
org.sunbird.telemetry.logger.TelemetryManager
import
scala.concurrent.
{
Await
,
ExecutionContext
,
Future
}
import
scala.concurrent.
{
Await
,
ExecutionContext
,
Future
}
import
scala.concurrent.duration.Duration
import
scala.concurrent.duration.Duration
...
@@ -62,6 +62,8 @@ trait LocalizeAssetProcessor extends IProcessor {
...
@@ -62,6 +62,8 @@ trait LocalizeAssetProcessor extends IProcessor {
}
}
def
downloadFile
(
downloadPath
:
String
,
fileUrl
:
String
)
:
File
=
try
{
def
downloadFile
(
downloadPath
:
String
,
fileUrl
:
String
)
:
File
=
try
{
TelemetryManager
.
info
(
"LocalizeAssetProcessor:: downloadFile:: downloadPath:: "
+
downloadPath
)
TelemetryManager
.
info
(
"LocalizeAssetProcessor:: downloadFile:: fileUrl:: "
+
fileUrl
)
createDirectory
(
downloadPath
)
createDirectory
(
downloadPath
)
val
file
=
new
File
(
downloadPath
+
File
.
separator
+
getFileNameFromURL
(
fileUrl
))
val
file
=
new
File
(
downloadPath
+
File
.
separator
+
getFileNameFromURL
(
fileUrl
))
FileUtils
.
copyURLToFile
(
new
URL
(
fileUrl
),
file
)
FileUtils
.
copyURLToFile
(
new
URL
(
fileUrl
),
file
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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
Menu
Explore
Projects
Groups
Topics
Snippets