[ 
https://issues.apache.org/jira/browse/JENA-1481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16576496#comment-16576496
 ] 

ASF GitHub Bot commented on JENA-1481:
--------------------------------------

Github user ajs6f commented on a diff in the pull request:

    https://github.com/apache/jena/pull/458#discussion_r209307965
  
    --- Diff: jena-base/src/main/java/org/apache/jena/atlas/io/IO.java ---
    @@ -364,4 +369,31 @@ public static String uniqueFilename(String directory, 
String base, String ext) {
                 return null ;
             }
         }
    +    
    +    /** Delete everything from a {@code Path} start point, including the 
path itself.
    +     * This function works on files or directories.
    +     * This function does not follow symbolic links.
    +     */  
    +    public static void deleteAll(Path start) {
    +        // Walks down the tree and deletes directories on the way backup.
    +        try { 
    +            Files.walkFileTree(start, new SimpleFileVisitor<Path>() {
    --- End diff --
    
    Could this `new SimpleFileVisitor` be broken out as a `static` inner class? 


> Deleting dataset in Fuseki does not delete dataset permanently
> --------------------------------------------------------------
>
>                 Key: JENA-1481
>                 URL: https://issues.apache.org/jira/browse/JENA-1481
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: Fuseki
>         Environment: Linux & Windows
>            Reporter: Prakash Sagadevan
>            Priority: Major
>         Attachments: image-2018-02-08-17-34-35-843.png, 
> image-2018-02-08-17-54-05-560.png, image-2018-02-08-17-54-22-860.png, 
> image-2018-02-08-17-54-40-174.png, image-2018-02-08-17-54-53-762.png, 
> image-2018-02-08-17-55-05-360.png, image-2018-02-08-17-55-21-173.png
>
>
> In Apache Jena fuskei 3.6.0, I have created a persistent dataset called 
> "Sample". 
> Following are the steps performed to created a "Sample" dataset
>  # Fuseki Version !image-2018-02-08-17-54-05-560.png!
>  # Create a persistent dataset !image-2018-02-08-17-54-22-860.png!
>  # Checking Fuskei TDB Location. 
>  ## Once after the new dataset created, the configuration turtle file 
> (Sample.ttl) and database folder (Sample) is created. 
> !image-2018-02-08-17-54-40-174.png!
>  # Remove the "Sample" dataset
>  ## Click Remove button !image-2018-02-08-17-54-53-762.png!
>  ## Confirmation !image-2018-02-08-17-55-05-360.png!  
>  # Check the Fuskei TDB Location.  !image-2018-02-08-17-55-21-173.png!
> It seems that latest *Apache Jena fuskei 3.6.0* application deletes only the 
> configuration turtle file not the database folder in both Windows and Linux 
> environment.
> *Note:* *Apache Jena fuskei 3.4.0* application could not delete both 
> configuration turtle file and database. so the dataset will be present when 
> fuseki restarted.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to