Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Pulsar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
NDIP
Pulsar
Commits
00d1e8b7
Commit
00d1e8b7
authored
8 years ago
by
John Chilton
Browse files
Options
Downloads
Patches
Plain Diff
Fixup that last commit.
parent
09f7ec3e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pulsar/client/staging/up.py
+4
-4
4 additions, 4 deletions
pulsar/client/staging/up.py
with
4 additions
and
4 deletions
pulsar/client/staging/up.py
+
4
−
4
View file @
00d1e8b7
from
os.path
import
abspath
,
basename
,
join
,
exists
from
os.path
import
is
dir
from
os.path
import
is
file
from
os.path
import
dirname
from
os.path
import
relpath
from
os
import
listdir
,
sep
...
...
@@ -206,11 +206,11 @@ class FileStager(object):
return
self
.
__list_files
(
self
.
metadata_directory
)
def
__list_files
(
self
,
directory
):
if
not
directory
or
not
exists
(
directory
):
if
directory
and
exists
(
directory
):
return
[
f
for
f
in
listdir
(
directory
)
if
isfile
(
join
(
directory
,
f
))]
else
:
return
[]
return
[
f
for
f
in
listdir
(
directory
)
if
exists
(
f
)
and
isdir
(
f
)]
def
__initialize_version_file_rename
(
self
):
version_file
=
self
.
version_file
if
version_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