Compare commits
No commits in common. "main" and "v1.0" have entirely different histories.
4 changed files with 7 additions and 43 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -396,6 +396,3 @@ FodyWeavers.xsd
|
|||
|
||||
# JetBrains Rider
|
||||
*.sln.iml
|
||||
|
||||
# Inno Setup
|
||||
SetupFiles/
|
|
@ -59,12 +59,9 @@ namespace AFCExplorer
|
|||
{
|
||||
if (fn == "." || fn == "..") continue;
|
||||
afc.afc_get_file_info(afcHandle, path + fn, out ReadOnlyCollection<string> fileInfo).ThrowOnError();
|
||||
Dictionary<string, string> fileInfoD = new Dictionary<string, string>();
|
||||
for (int i = 0; i < fileInfo.Count; i += 2) fileInfoD.Add(fileInfo[i], fileInfo[i+1]);
|
||||
//MessageBox.Show(string.Join("\n", fileInfo));
|
||||
string readableSize = FormatBytes(ulong.Parse(fileInfoD["st_size"]));
|
||||
string readableType = ReadableTypes[fileInfoD["st_ifmt"]];
|
||||
int unixSeconds = (int)(((long.Parse(fileInfoD["st_mtime"]) / 1000) / 1000) / 1000);
|
||||
string readableSize = FormatBytes(ulong.Parse(fileInfo[1]));
|
||||
string readableType = fileInfo[7] == "S_IFDIR" ? "Directory" : "File";
|
||||
int unixSeconds = (int)(((long.Parse(fileInfo[9]) / 1000) / 1000) / 1000);
|
||||
string readableTime = DateTimeOffset.FromUnixTimeSeconds(unixSeconds).DateTime.ToString();
|
||||
afcDirectory.Add(new AFCFileType(fn, readableType, readableTime, readableSize));
|
||||
}
|
||||
|
@ -362,12 +359,5 @@ namespace AFCExplorer
|
|||
|
||||
return string.Format("{0:0.##} {1}", dblSByte, Suffix[i]);
|
||||
}
|
||||
|
||||
public static Dictionary<string, string> ReadableTypes = new Dictionary<string, string>
|
||||
{
|
||||
{ "S_IFDIR", "Directory" },
|
||||
{ "S_IFREG", "File" },
|
||||
{ "S_IFLNK", "Symbolic Link" },
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,23 +0,0 @@
|
|||
[Setup]
|
||||
AppName=AFCExplorer
|
||||
AppPublisher=KawaiiZenbo
|
||||
AppVerName=AFCExplorer
|
||||
AppVersion=1.0.1
|
||||
WizardStyle=modern
|
||||
DefaultDirName={autopf}\AFCExplorer
|
||||
DefaultGroupName=AFCExplorer
|
||||
UninstallDisplayIcon={app}\AFCExplorer.exe
|
||||
Compression=lzma2
|
||||
SolidCompression=yes
|
||||
OutputDir=.\SetupFiles
|
||||
|
||||
[Files]
|
||||
Source: "AFCExplorer\bin\Release\*"; DestDir: "{app}"
|
||||
Source: "AFCExplorer\bin\Release\win-x86\*"; DestDir: "{app}\win-x86"
|
||||
|
||||
[Icons]
|
||||
Name: "{group}\AFCExplorer"; Filename: "{app}\AFCExplorer.exe"
|
||||
Name: "{commondesktop}\AFCExplorer"; Filename: "{app}\AFCExplorer.exe"; Tasks: desktopicon
|
||||
|
||||
[Tasks]
|
||||
Name: desktopicon; Description: "Create a &desktop icon";
|
|
@ -2,7 +2,7 @@
|
|||
AFC File Browser for iOS Devices
|
||||
|
||||
## Requirements
|
||||
Windows 7 SP1 or later
|
||||
iTunes 10 or later, or the Apple Devices app
|
||||
.NET Framework 4.7.2 or later
|
||||
Apple File Conduit 2 Tweak (if using AFC2 mode)
|
||||
Windows 7 SP1 or later
|
||||
iTunes 10 or later (ensure "Apple Devices" from Microsoft Store is NOT installed)
|
||||
.NET Framework 4.7.2 or later
|
||||
Apple File Conduit 2 Tweak (if using AFC2 mode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue