Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

Netfreak25
Copy link

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
Author

  • mattrib has been added as alternative for linux and osx
  • additional error messages have been added

@khalilgharbaoui
Copy link

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
2 participants