Skip to content

Commit

Permalink
added 2 new methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ErrorxCode authored Dec 10, 2021
1 parent 7d9cee5 commit 9468f9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EasyInsta/src/main/java/com/xcoder/easyinsta/Instagram.java
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public void run() {
* @param directory The directory on the filesystem where the cache should be saved.
* @throws InstagramException - if the provided file is not a directory or is not writable.
*/
private static void saveInstance(File directory) throws InstagramException {
public void saveInstance(File directory) throws InstagramException {
try {
if (directory.isDirectory())
client.serialize(new File(directory,"object"),new File(directory,"cookie"));
Expand All @@ -155,7 +155,7 @@ private static void saveInstance(File directory) throws InstagramException {
}
}

private static Instagram loadInstance(File directory){
public static Instagram loadInstance(File directory){
try {
if (directory.isDirectory())
return new Instagram(IGClient.deserialize(new File(directory,"object"),new File(directory,"cookie")));
Expand Down

0 comments on commit 9468f9f

Please sign in to comment.