Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix: Mac/Extras.install.py,Can not filter osx .DS_store file#98579

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed

Conversation

@zhangbo2012
Copy link
Contributor

Mac/Extras.install.py,Can not filter osx DS_store file

As

ifname=='.DS_store':return0

But in OSX, Real File Name is .DS_Store, like this

(venv) zhangbo@zhangbodeMacBook-Pro a2 % ll -atotal 16drwxr-xr-x  4 zhangbo  staff   128 Oct 22 17:34.drwxr-xr-x  8 zhangbo  staff   256 Oct 22 17:18 ..-rw-r--r--@ 1 zhangbo  staff  6148 Oct 22 17:17 .DS_Storedrwxr-xr-x  3 zhangbo  staff    96 Oct 22 17:23 123

So we need update.DS_store to.DS_Store

arhadthedev reacted with thumbs up emoji
@bedevere-bot
Copy link

Most changes to Pythonrequire a NEWS entry.

Please add it using theblurb_it web app or theblurb command-line tool.

@ghost
Copy link

The following commit authors need to sign the Contributor License Agreement:

Click the button to sign:
CLA not signed

Comment on lines 12 to 16
ifname=='CVS':return0
ifname=='.cvsignore':return0
ifname=='.DS_store':return0
ifname=='.DS_Store':return0
ifname=='.svn':return0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
ifname=='CVS':return0
ifname=='.cvsignore':return0
ifname=='.DS_store':return0
ifname=='.DS_Store':return0
ifname=='.svn':return0
ifnamein ('CVS','.cvsignore','.DS_store','.DS_Store','.svn')`:
return0

A proof-of-concept:

>>>deftest(name):...returnnamein ('CVS','.cvsignore','.DS_store','.DS_Store','.svn')...>>>test('fooCVS')False>>>test('foo')False>>>test('CVS')True

zhangbo2012 reacted with thumbs up emoji
Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

simple and better performance

@zhangbo2012zhangbo2012 deleted the B_MAC.Extras.install.py branchOctober 24, 2022 01:30
@zhangbo2012
Copy link
ContributorAuthor

Sorry , I use a wrong email, cannot sign Contributor License Agreement@arhadthedev

I'll create a new PR

@arhadthedev
Copy link
Member

For history: the new PR isgh-98580.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@arhadthedevarhadthedevarhadthedev left review comments

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@zhangbo2012@bedevere-bot@arhadthedev

[8]ページ先頭

©2009-2025 Movatter.jp