@@ -74,7 +74,7 @@ public Form1() {
74
74
Console . WindowHeight = 20 ;
75
75
var handle = GetConsoleWindow ( ) ;
76
76
ShowWindow ( handle , SW_HIDE ) ;
77
- string versionn = $ "{ AdbFileManager . Properties . Resources . CurrentCommit . Trim ( ) } B 09 .02.24";
77
+ string versionn = $ "{ AdbFileManager . Properties . Resources . CurrentCommit . Trim ( ) } 19 .02.24";
78
78
version . Text = versionn ;
79
79
Console . WriteLine ( versionn ) ;
80
80
}
@@ -105,7 +105,7 @@ public static string adb(string command) {
105
105
return output ;
106
106
}
107
107
private void verticalLabel1_Click ( object sender , EventArgs e ) {
108
- dataGridView1 . DataSource = Functions . getDir ( directoryPath , checkBox_android6fix . Checked ) ;
108
+ dataGridView1 . DataSource = Functions . getDir ( directoryPath , checkBox_android6fix . Checked , checkBox_android6fix_fastmode . Checked ) ;
109
109
}
110
110
111
111
private void explorerBrowser1_Load ( object sender , EventArgs e ) {
@@ -169,7 +169,7 @@ private void dataGridView1_CellMouseDoubleClick(object sender, DataGridViewCellM
169
169
cur_path . Text = directoryPath ;
170
170
cur_path_modifyInternal = false ;
171
171
//MessageBox.Show(directoryPath);
172
- dataGridView1 . DataSource = Functions . getDir ( directoryPath , checkBox_android6fix . Checked ) ;
172
+ dataGridView1 . DataSource = Functions . getDir ( directoryPath , checkBox_android6fix . Checked , checkBox_android6fix_fastmode . Checked ) ;
173
173
}
174
174
}
175
175
}
@@ -203,7 +203,7 @@ private void android2pc_Click(object sender, EventArgs e) {
203
203
File file = files [ i ] ;
204
204
if ( Functions . isFolder ( file , checkBox_android6fix . Checked ) ) {
205
205
Console . WriteLine ( "unwraping folder: " + file . name ) ;
206
- DataTable newfiles_table = Functions . getDir ( directoryPath + file . name , checkBox_android6fix . Checked ) ;
206
+ DataTable newfiles_table = Functions . getDir ( directoryPath + file . name , checkBox_android6fix . Checked , checkBox_android6fix_fastmode . Checked ) ;
207
207
Console . WriteLine ( "removed folder status: " + files . Remove ( file ) ) ;
208
208
List < File > newfiles = new List < File > ( ) ;
209
209
foreach ( DataRow row in newfiles_table . Rows ) {
@@ -297,7 +297,7 @@ void clickedFolder() {
297
297
directoryPath = directoryPath + name + "/" ;
298
298
cur_path . Text = directoryPath ;
299
299
//MessageBox.Show(directoryPath);
300
- dataGridView1 . DataSource = Functions . getDir ( directoryPath , checkBox_android6fix . Checked ) ;
300
+ dataGridView1 . DataSource = Functions . getDir ( directoryPath , checkBox_android6fix . Checked , checkBox_android6fix_fastmode . Checked ) ;
301
301
}
302
302
}
303
303
}
@@ -322,15 +322,15 @@ void goUpDirectory() {
322
322
cur_path_modifyInternal = true ;
323
323
cur_path . Text = directoryPath ;
324
324
cur_path_modifyInternal = false ;
325
- dataGridView1 . DataSource = Functions . getDir ( directoryPath , checkBox_android6fix . Checked ) ;
325
+ dataGridView1 . DataSource = Functions . getDir ( directoryPath , checkBox_android6fix . Checked , checkBox_android6fix_fastmode . Checked ) ;
326
326
}
327
327
private void timer1_Tick ( object sender , EventArgs e ) {
328
328
Console . WriteLine ( "timer ticked" ) ;
329
329
330
330
timer1 . Stop ( ) ;
331
331
timer1 . Enabled = false ;
332
332
333
- dataGridView1 . DataSource = Functions . getDir ( directoryPath , checkBox_android6fix . Checked ) ;
333
+ dataGridView1 . DataSource = Functions . getDir ( directoryPath , checkBox_android6fix . Checked , checkBox_android6fix_fastmode . Checked ) ;
334
334
335
335
cur_path_modifyInternal = true ;
336
336
cur_path . Text = directoryPath ;
@@ -369,7 +369,7 @@ private void cur_path_TextChanged(object sender, EventArgs e) {
369
369
return ;
370
370
}
371
371
directoryPath = cur_path . Text ;
372
- dataGridView1 . DataSource = Functions . getDir ( directoryPath , checkBox_android6fix . Checked ) ;
372
+ dataGridView1 . DataSource = Functions . getDir ( directoryPath , checkBox_android6fix . Checked , checkBox_android6fix_fastmode . Checked ) ;
373
373
}
374
374
375
375
private void Form1_Load ( object sender , EventArgs e ) {
@@ -455,6 +455,7 @@ private void save_settings() {
455
455
Properties . Settings . Default . smooth_progressbar = checkBox_unwrapfolders . Checked ;
456
456
Properties . Settings . Default . keep_modification_date = checkBox_filedate . Checked ;
457
457
Properties . Settings . Default . compatibility = checkBox_android6fix . Checked ;
458
+ Properties . Settings . Default . compatibility_fast = checkBox_android6fix_fastmode . Checked ;
458
459
459
460
Properties . Settings . Default . lang = ( ushort ) comboBox_lang . SelectedIndex ;
460
461
Properties . Settings . Default . Save ( ) ;
@@ -464,6 +465,7 @@ private void load_settings() {
464
465
checkBox_unwrapfolders . Checked = Properties . Settings . Default . smooth_progressbar ;
465
466
checkBox_filedate . Checked = Properties . Settings . Default . keep_modification_date ;
466
467
checkBox_android6fix . Checked = Properties . Settings . Default . compatibility ;
468
+ checkBox_android6fix_fastmode . Checked = Properties . Settings . Default . compatibility_fast ;
467
469
comboBox_lang . SelectedIndex = Properties . Settings . Default . lang ;
468
470
}
469
471
private void load_lang_combobox ( ) {
@@ -547,6 +549,10 @@ private void button_forward_Click(object sender, EventArgs e) {
547
549
explorerBrowser1 . NavigateLogLocation ( NavigationLogDirection . Forward ) ;
548
550
}
549
551
552
+ private void checkBox_android6fix_CheckedChanged ( object sender , EventArgs e ) {
553
+ if ( checkBox_android6fix . Checked ) checkBox_android6fix_fastmode . Visible = true ;
554
+ else checkBox_android6fix_fastmode . Visible = false ;
555
+ }
550
556
}
551
557
552
558
public static class Functions {
@@ -557,21 +563,25 @@ public static class Functions {
557
563
public static string [ ] documentExtensions = { ".docx" , ".pdf" , ".txt" , ".pptx" , ".xlsx" , ".odt" , ".rtf" } ;
558
564
public static string [ ] archiveExtensions = { ".zip" , ".rar" , ".7z" , ".tar" , ".gz" , ".bz2" , ".xz" } ;
559
565
public static string [ ] executableExtensions = { ".exe" , ".dll" , ".bat" , ".msi" , ".jar" , ".py" , ".sh" , ".apk" } ;
560
-
566
+ static bool fastcompatibility = false ;
561
567
public static bool isFolder ( string path , bool old_android ) {
562
- if ( old_android ) return legacyAndroid . isFolder ( path ) ;
568
+ if ( old_android ) return legacyAndroid . isFolder ( path , fastcompatibility ) ;
563
569
if ( path == null ) return false ;
564
570
if ( path . ToLower ( ) . Trim ( ) [ 0 ] == 'd' ) return true ; //the first character of the line is 'd' if it's a directory
565
571
else return false ;
566
572
}
567
573
public static bool isFolder ( File file , bool old_android ) {
568
- if ( old_android ) return legacyAndroid . isFolder ( file ) ;
574
+ if ( old_android ) return legacyAndroid . isFolder ( file , fastcompatibility ) ;
569
575
if ( file . permissions . ToLower ( ) . Trim ( ) [ 0 ] == 'd' ) return true ; //the first character of the line is 'd' if it's a directory
570
576
else return false ;
571
577
}
572
578
573
- public static DataTable getDir ( string directoryPath , bool old_android ) {
574
- if ( old_android ) return legacyAndroid . getDir ( directoryPath ) ;
579
+ public static DataTable getDir ( string directoryPath , bool old_android , bool old_android_fast ) {
580
+ if ( old_android ) {
581
+ fastcompatibility = old_android_fast ;
582
+ legacyAndroid . fastcompatibility = old_android_fast ;
583
+ return legacyAndroid . getDir ( directoryPath ) ;
584
+ }
575
585
576
586
// Retrieve a list of files in the specified directory
577
587
0 commit comments