Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-tools-x393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-tools-x393
Commits
3b908324
Commit
3b908324
authored
Feb 11, 2017
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplification
parent
1f08a4a1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
extract_images.php
extract_images.php
+4
-6
No files found.
extract_images.php
View file @
3b908324
...
@@ -108,7 +108,7 @@ foreach ($list as $item) {
...
@@ -108,7 +108,7 @@ foreach ($list as $item) {
if
(
$item
==
$processed_subdir
)
continue
;
if
(
$item
==
$processed_subdir
)
continue
;
$sublist
=
preg_grep
(
'/^([^.])/'
,
scandir
(
"
$path
/
$item
"
));
$sublist
=
preg_grep
(
'/^([^.])/'
,
scandir
(
"
$path
/
$item
"
));
foreach
(
$sublist
as
$subitem
){
foreach
(
$sublist
as
$subitem
){
if
(
split_file
(
"
$
item
/
$subitem
"
)
==
0
){
if
(
split_file
(
"
$
path
/
$item
"
,
"
$subitem
"
,
"../
$destination
"
)
==
0
){
if
(
$move_processed
){
if
(
$move_processed
){
if
(
!
is_dir
(
"
$path
/
$item
/
$processed_subdir
"
)){
if
(
!
is_dir
(
"
$path
/
$item
/
$processed_subdir
"
)){
mkdir
(
"
$path
/
$item
/
$processed_subdir
"
,
0777
);
mkdir
(
"
$path
/
$item
/
$processed_subdir
"
,
0777
);
...
@@ -118,7 +118,7 @@ foreach ($list as $item) {
...
@@ -118,7 +118,7 @@ foreach ($list as $item) {
}
}
}
}
}
else
{
}
else
{
if
(
split_file
(
"
$
item
"
)
==
0
){
if
(
split_file
(
"
$
path
"
,
"
$item
"
,
"
$destination
"
)
==
0
){
if
(
$move_processed
){
if
(
$move_processed
){
if
(
!
is_dir
(
"
$path
/
$processed_subdir
"
)){
if
(
!
is_dir
(
"
$path
/
$processed_subdir
"
)){
mkdir
(
"
$path
/
$processed_subdir
"
,
0777
);
mkdir
(
"
$path
/
$processed_subdir
"
,
0777
);
...
@@ -129,10 +129,8 @@ foreach ($list as $item) {
...
@@ -129,10 +129,8 @@ foreach ($list as $item) {
}
}
}
}
function
split_file
(
$
file
){
function
split_file
(
$
path
,
$file
,
$destination
){
global
$path
;
global
$destination
;
global
$startMarkerWithExif
;
global
$startMarkerWithExif
;
global
$chunksize
;
global
$chunksize
;
global
$input_exts
;
global
$input_exts
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment