Skip to content

Commit f7f5228

Browse files
committed
File browser now handles extensions with multiple suffixes correctly (e.g. ".tar.gz") (closed #54)
1 parent 5dc749d commit f7f5228

File tree

4 files changed

+169
-45
lines changed

4 files changed

+169
-45
lines changed

.github/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public static bool FileBrowserHelpers.FileExists( string path );
160160
public static bool FileBrowserHelpers.DirectoryExists( string path );
161161
public static bool FileBrowserHelpers.IsDirectory( string path );
162162
public static string FileBrowserHelpers.GetDirectoryName( string path );
163-
public static FileSystemEntry[] FileBrowserHelpers.GetEntriesInDirectory( string path ); // Returns all files and folders in a directory
163+
public static FileSystemEntry[] FileBrowserHelpers.GetEntriesInDirectory( string path, bool extractOnlyLastSuffixFromExtensions ); // Returns all files and folders in a directory. If you want "File.tar.gz"s extension to be extracted as ".tar.gz" instead of ".gz", set 'extractOnlyLastSuffixFromExtensions' to false
164164
public static string FileBrowserHelpers.CreateFileInDirectory( string directoryPath, string filename ); // Returns the created file's path
165165
public static string FileBrowserHelpers.CreateFolderInDirectory( string directoryPath, string folderName ); // Returns the created folder's path
166166
public static void FileBrowserHelpers.WriteBytesToFile( string targetPath, byte[] bytes );

Plugins/SimpleFileBrowser/README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ bool FileBrowserHelpers.FileExists( string path );
8181
bool FileBrowserHelpers.DirectoryExists( string path );
8282
bool FileBrowserHelpers.IsDirectory( string path );
8383
string FileBrowserHelpers.GetDirectoryName( string path );
84-
FileSystemEntry[] FileBrowserHelpers.GetEntriesInDirectory( string path ); // Returns all files and folders in a directory
84+
FileSystemEntry[] FileBrowserHelpers.GetEntriesInDirectory( string path, bool extractOnlyLastSuffixFromExtensions ); // Returns all files and folders in a directory. If you want "File.tar.gz"s extension to be extracted as ".tar.gz" instead of ".gz", set 'extractOnlyLastSuffixFromExtensions' to false
8585
string FileBrowserHelpers.CreateFileInDirectory( string directoryPath, string filename ); // Returns the created file's path
8686
string FileBrowserHelpers.CreateFolderInDirectory( string directoryPath, string folderName ); // Returns the created folder's path
8787
void FileBrowserHelpers.WriteBytesToFile( string targetPath, byte[] bytes );

0 commit comments

Comments
 (0)