Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nacos-config
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Euan游根明
nacos-config
Commits
b3e320c6
Commit
b3e320c6
authored
Dec 01, 2023
by
Euan游根明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: 优化获取文件路径
parent
abeed4d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
Nacos.php
src/Nacos/Nacos.php
+5
-7
No files found.
src/Nacos/Nacos.php
View file @
b3e320c6
...
@@ -259,15 +259,13 @@ class Nacos
...
@@ -259,15 +259,13 @@ class Nacos
*/
*/
public
static
function
getPath
(
$path
,
$fileName
){
public
static
function
getPath
(
$path
,
$fileName
){
if
(
!
file_exists
(
$path
))
{
$file
=
$path
.
$fileName
;
if
(
!
file_exists
(
$file
))
{
mkdir
(
$path
,
0775
,
true
);
mkdir
(
$path
,
0775
,
true
);
touch
(
$path
.
$fileName
);
touch
(
$file
);
}
chmod
(
$file
,
0775
);
if
(
!
file_exists
(
$path
.
$fileName
))
{
touch
(
$path
.
$fileName
);
}
}
return
$path
.
$fileName
;
return
$file
;
}
}
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment