Comments (5)
Can you show similar functionality in other projects or describe why you need this method in real life?
from archive7z.
I don't have examples in other projects, but what if for some reason 7z executable disapper from os? Update problems/etc. Just simple isBinaryAvailable()
could be called to check it.
from archive7z.
You can call null !== $obj7z->getBinary7z()
.
But in General, there should be no situation when binary path is not available. An exception must be thrown.
Lines 171 to 186 in 68eddc4
from archive7z.
Ok, but now this method seems to be deleted. Can you provide another static one to avoid object creation?
from archive7z.
I would suggest, for example, overriding the makeBinary7z
method.
Lines 72 to 85 in 40e2f86
Archive7z/src/Archive7zTrait.php
Lines 56 to 73 in 40e2f86
The ideology of the library is based on the fact that its base class will be extended.
from archive7z.
Related Issues (20)
- Failed on macos HOT 3
- Add inArchivePath in addEntry HOT 8
- Fix custom encodings in filenames HOT 7
- ProcessTimedOutException on large 7Zip archives HOT 2
- Allow to disable timeout at all
- Extracting tar.gz/tar.bz2 in one-step HOT 2
- Need help with installation HOT 2
- Try FFI HOT 1
- Add support solid archive
- Add common archive info
- Better configuration
- getCrc() fails sometimes HOT 3
- Question marks in Cyrillic file names HOT 2
- physicalSize missing from gzip files HOT 3
- OVERWRITE_MODE_T duplicating all files HOT 1
- Hello, what is the problem causing this error? HOT 4
- Cant not find 7za because I install p7zip with opkg HOT 2
- Reading previously divided archives HOT 6
- To do the equivalent of / and \ in file paths
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from archive7z.