Class MFiles


  • public class MFiles
    extends Object
    Static helper methods for MFile objects.
    Since:
    5.4
    • Constructor Detail

      • MFiles

        public MFiles()
    • Method Detail

      • create

        @Nonnull
        public static MFile create​(@Nonnull
                                   String location)
        Create an MFile from a given location, the file may or may not exist
        Parameters:
        location - location of file (local or remote) to be used to back the MFile object
        Returns:
        MFile
      • createIfExists

        @Nullable
        public static MFile createIfExists​(String location)
        Create an MFile from a given location if it exists, otherwise return null.
        Parameters:
        location - location of file (local or remote) to be used to back the MFile object
        Returns:
        MFile