FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
en.javascript.info/script/clean-unused-png.php at taskui · javascript-tutorial/en.javascript.info · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
javascript-tutorial
/
en.javascript.info
Public
Notifications
You must be signed in to change notification settings
Fork
4k
Star
25.4k
Code
Issues
252
Pull requests
289
Discussions
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
en.javascript.info
/
script
/
clean-unused-png.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
22 lines (17 loc) · 386 Bytes
Breadcrumbs
en.javascript.info
/
script
/
clean-unused-png.php
Copy path
File metadata and controls
22 lines (17 loc) · 386 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
$
files
=
trim
(`
find . -name *.png
`);
$
files
=
explode
(
"\n"
,
$
files
);
$
root
=
getcwd
();
echo
$
root
;
foreach
(
$
files
as
$
file
) {
$
file
=
trim
(
substr
(
$
file
,
1
));
if
(
strstr
(
$
file
,
'
@2x
'
))
continue
;
$
filename
=
basename
(
$
file
);
$
dir
=
$
root
.
dirname
(
$
file
);
chdir
(
$
dir
);
$
result
= `
grep
$
filename
*
`;
if
(!
$
result
) {
echo
$
dir
,
"\n"
,
$
filename
;
exit
;
}
}
Back
|
FazBrowse Home
|
New Git URL