Skip to content

Warn of Windows deprecation in fs plugin.#4589

Closed
ximenesuk wants to merge 2 commits intoome:developfrom
ximenesuk:fs-deprecate-win
Closed

Warn of Windows deprecation in fs plugin.#4589
ximenesuk wants to merge 2 commits intoome:developfrom
ximenesuk:fs-deprecate-win

Conversation

@ximenesuk
Copy link
Copy Markdown
Contributor

As the fs plugin does deal with file level operations, particularly fs rename it probably deserves a warning. I've added it at the top level though it may be more warranted at the rename level? (Though maybe the plugin is being used remotely?)

The deprecation warning should appear when omero fs --help or omero fs -h is used on Windows.

@atarkowska
Copy link
Copy Markdown
Member

atarkowska commented Apr 19, 2016

This message should also being displayed for each running command. People may not run help if they already know how to use it

@ximenesuk
Copy link
Copy Markdown
Contributor Author

I've added the warning to the only relevant command, the admin-only rename.

template. By default the original files and import log are also
moved.
"""
if platform.system() == 'Windows':
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

you could use self._isWindows()

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I was using the same condition as on of the other examples I looked at but happy to chnage if there is a preferred style. /cc @jburel

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I will update my PR too

Copy link
Copy Markdown
Member

@atarkowska atarkowska Apr 22, 2016

Choose a reason for hiding this comment

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

@ximenesuk that is true for the top level check but within a class you can access, see https://github.com/openmicroscopy/openmicroscopy/pull/4565/files#diff-ad256e5e06d156adf521e47a4cdd8c37R68.

My comment was only suggestion, no need to be changed. I am planning to make _isWindows static that we will be able to use it in init as well (next PR once all of these warnings are merged).

@atarkowska atarkowska mentioned this pull request Apr 22, 2016
@atarkowska
Copy link
Copy Markdown
Member

as discussed cherry-picked to #4601 can be closed now

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants