Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
data_pipelines_sftp
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
data_pipelines_sftp
Merge requests
!7
Ensure the resolved local path is used when getting the file.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Ensure the resolved local path is used when getting the file.
issue/data_pipelines_sftp-3521453:3521453-fix-the-local
into
1.x
Overview
0
Commits
1
Pipelines
2
Changes
1
Merged
Ken Mortimer
requested to merge
issue/data_pipelines_sftp-3521453:3521453-fix-the-local
into
1.x
1 month ago
Overview
0
Commits
1
Pipelines
2
Changes
1
Expand
Closes
#3521453
0
0
Merge request reports
Compare
1.x
1.x (base)
and
latest version
latest version
73cdad96
1 commit,
1 month ago
1 file
+
4
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/Storage.php
+
4
−
3
Options
@@ -18,7 +18,7 @@ class Storage {
*
* @var string
*/
const
LOCAL_FOLDER
=
'private://data_pipelines_sftp/cache'
;
const
string
LOCAL_FOLDER
=
'private://data_pipelines_sftp/cache'
;
/**
* A method to get the local path for storage.
@@ -99,8 +99,9 @@ class Storage {
* The resource of the local file.
*/
public
function
getLocalCopy
(
string
$path
):
mixed
{
if
(
is_readable
(
$this
->
getLocalPath
(
$path
)))
{
if
(
$stream
=
fopen
(
$path
,
'r'
))
{
$local_path
=
$this
->
getLocalPath
(
$path
);
if
(
is_readable
(
$local_path
))
{
if
(
$stream
=
fopen
(
$local_path
,
'r'
))
{
rewind
(
$stream
);
return
$stream
;
}
Loading