Skip to content

[Fix] splitFile.py - attrib command fails on Linux/OSX#2

Open
Netfreak25 wants to merge 11 commits into
zhaoloving:masterfrom
Netfreak25:master
Open

[Fix] splitFile.py - attrib command fails on Linux/OSX#2
Netfreak25 wants to merge 11 commits into
zhaoloving:masterfrom
Netfreak25:master

Conversation

@Netfreak25

Copy link
Copy Markdown

The splitFile.py script fails on Linux and OSX without this modification as the 'attrib' command is not available on those systems ( probably includes java environments, but I only checked ubuntu and osx)

This fix prevents this function to be executed if the environment is a non-windows one

only set attrib on non unix machines
set archive attrib only on windows os
using mattrib as alternative for attrib in windows
installation of mtools is required, so the script checks if the command is available prior execution
@Netfreak25

Copy link
Copy Markdown
Author
  • mattrib has been added as alternative for linux and osx
  • additional error messages have been added

@khalilgharbaoui

Copy link
Copy Markdown

Will this be merged?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants